T
- the interceptor bean classpublic interface Interceptor<T> extends Bean<T>
Represents an enabled interceptor.
Modifier and Type | Method and Description |
---|---|
Set<Annotation> |
getInterceptorBindings()
Obtains the interceptor bindings of the interceptor.
|
Object |
intercept(InterceptionType type,
T instance,
InvocationContext ctx)
Invokes the specified kind of lifecycle callback or method invocation interception upon the
given interceptor instance.
|
boolean |
intercepts(InterceptionType type)
Determines if the interceptor intercepts the specified kind of lifecycle callback or method
invocation.
|
getBeanClass, getInjectionPoints, isNullable
create, destroy
getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative
Set<Annotation> getInterceptorBindings()
Obtains the interceptor bindings of the interceptor.
boolean intercepts(InterceptionType type)
Determines if the interceptor intercepts the specified kind of lifecycle callback or method invocation.
type
- the kind of interceptionObject intercept(InterceptionType type, T instance, InvocationContext ctx) throws Exception
Invokes the specified kind of lifecycle callback or method invocation interception upon the given interceptor instance.
type
- the kind of interceptioninstance
- the interceptor instance to invokectx
- the context for the invocationException
- thrown by the target method and/or the following interceptors in the chainCopyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.