public interface InterceptorData
Interceptors annotationInterceptorBinding and InterceptorIf the bean is an EJB component, EJB container is responsible for calling the EJB related interceptors, otherwise OWB container takes the responsibility. In the both cases, OWB Container is responsible for calling web beans related inteceptors.
| Modifier and Type | Method and Description |
|---|---|
Object |
createNewInstance(Object ownerInstance,
CreationalContextImpl<?> creationalContext)
Creates and returns a new interceptor instance.
|
Method |
getAroundInvoke()
Gets
AroundInvoke annotated method
if exist, returns null otherwise. |
Method |
getAroundTimeout()
Gets
AroundTimeout annotated method
if exist, returns null otherwise. |
Method |
getInterceptorBindingMethod()
Gets the interceptor annotated method.
|
Class<?> |
getInterceptorClass()
if this interceptor data is defined by interceptor,
null otherwise.
|
Method |
getInterceptorMethod()
Gets interceptor method that this
interceptor data contains.
|
Method |
getPostActivate()
Gets
javax.ejb.PostActivate annotated method if exist
return null otherwise. |
Method |
getPostConstruct()
Gets
PostConstruct annotated method if exist
return null otherwise. |
Method |
getPreDestroy()
Gets the
PreDestroy annotated method
if exist, returns null otherwise. |
Method |
getPrePassivate()
Gets
javax.ejb.PrePassivate annotated method if exist
return null otherwise. |
javax.enterprise.inject.spi.Interceptor<?> |
getWebBeansInterceptor()
Gets JSR 299 style interceptor bean
that is responsible for producing interceptor
instance that defines interceptor method.
|
boolean |
isDefinedInInterceptorClass()
Checks whether the interceptor is defined at the interceptor class.
|
boolean |
isDefinedInMethod()
Checks the interceptor is defined at the method level.
|
boolean |
isDefinedWithWebBeansInterceptor()
Checks whether interceptor is configured with webbeans interceptor
definition or not.
|
boolean |
isLifecycleInterceptor()
Returns true if lifecycle interceptor method
false otherwise.
|
void |
setDefinedInInterceptorClass(boolean definedInInterceptorClass)
Sets the source of the interceptor.
|
void |
setDefinedInMethod(boolean definedInMethod)
Sets true if interceptor is defined at the method, false ow.
|
void |
setInterceptorBindingMethod(Method annotatedMethod)
Sets the interceptor annotated method.
|
void |
setInterceptorClass(Class<?> clazz)
sets interceptor class.
|
void |
setInterceptorMethod(Method interceptorMethod,
Class<? extends Annotation> interceptionType)
Sets the interceptor method.
|
void |
setWebBeansInterceptor(javax.enterprise.inject.spi.Interceptor<?> webBeansInterceptor)
Sets JSR 299 style interceptor.
|
Method getPostConstruct()
PostConstruct annotated method if exist
return null otherwise.Method getPostActivate()
javax.ejb.PostActivate annotated method if exist
return null otherwise.Method getPreDestroy()
PreDestroy annotated method
if exist, returns null otherwise.Method getPrePassivate()
javax.ejb.PrePassivate annotated method if exist
return null otherwise.Method getAroundInvoke()
AroundInvoke annotated method
if exist, returns null otherwise.Method getAroundTimeout()
AroundTimeout annotated method
if exist, returns null otherwise.Method getInterceptorMethod()
void setInterceptorMethod(Method interceptorMethod, Class<? extends Annotation> interceptionType)
Annotation is in
PostConstructPreDestroyAroundInvokeinterceptorMethod - interceptor methodinterceptionType - interceptor annotation classvoid setDefinedInInterceptorClass(boolean definedInInterceptorClass)
Interceptor is defined by the bean itself or defined by the interceptor class.
definedInInterceptorClass - defined in interceptor classboolean isDefinedInMethod()
void setDefinedInMethod(boolean definedInMethod)
definedInMethod - defined in method flagMethod getInterceptorBindingMethod()
void setInterceptorBindingMethod(Method annotatedMethod)
annotatedMethod - interceptor annotated method.boolean isDefinedInInterceptorClass()
boolean isDefinedWithWebBeansInterceptor()
void setWebBeansInterceptor(javax.enterprise.inject.spi.Interceptor<?> webBeansInterceptor)
webBeansInterceptor - JSR 299 style interceptorjavax.enterprise.inject.spi.Interceptor<?> getWebBeansInterceptor()
boolean isLifecycleInterceptor()
Object createNewInstance(Object ownerInstance, CreationalContextImpl<?> creationalContext)
ownerInstance - The underlying instance the interceptor will be associated with, or any key to be used in its placecreationalContext - The context that will cache the created instance under the ownerInstance keyClass<?> getInterceptorClass()
void setInterceptorClass(Class<?> clazz)
clazz - interceptor classCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.