javax.enterprise.inject.spi
Interface Interceptor<T>

All Superinterfaces:
Bean<T>, Contextual<T>
All Known Implementing Classes:
AbstractInterceptorBean, InterceptorBean, InterceptorRuntimeBean, InterceptorSelfBean

public interface Interceptor<T>
extends Bean<T>

Metadata for for an interceptor


Method Summary
 java.util.Set<java.lang.annotation.Annotation> getInterceptorBindings()
          Returns the bindings for the interceptor
 java.lang.Object intercept(InterceptionType type, T instance, InvocationContext ctx)
          Invokes the callback
 boolean intercepts(InterceptionType type)
          Returns true if the interceptor intercepts the given type.
 
Methods inherited from interface javax.enterprise.inject.spi.Bean
getBeanClass, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable
 
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
 

Method Detail

getInterceptorBindings

java.util.Set<java.lang.annotation.Annotation> getInterceptorBindings()
Returns the bindings for the interceptor


intercepts

boolean intercepts(InterceptionType type)
Returns true if the interceptor intercepts the given type.


intercept

java.lang.Object intercept(InterceptionType type,
                           T instance,
                           InvocationContext ctx)
Invokes the callback