
Untitled
By: a guest on
Sep 15th, 2011 | syntax:
Java | size: 0.45 KB | views:
53 | expires: Never
public class InterceptorExtension
{
public <T> void processAnnotatedType(@Observes ProcessAnnotatedType<T> event)
{
AnnotatedTypeBuilder<T> builder = new AnnotatedTypeBuilder<T>().readFromType(event.getAnnotatedType());
builder.addToClass(new ExceptionHandledImpl());
event.setAnnotatedType(builder.create());
}
private static class ExceptionHandledImpl extends AnnotationLiteral<ExceptionHandled> implements ExceptionHandled
{
}
}