public class InterceptorDataImpl extends Object implements InterceptorData
InterceptorData api contract.| Constructor and Description |
|---|
InterceptorDataImpl(boolean isDefinedWithWebBeansInterceptor,
WebBeansContext webBeansContext) |
InterceptorDataImpl(boolean isDefinedWithWebBeansInterceptor,
WebBeansDecoratorInterceptor decoratorInterceptor,
WebBeansContext webBeansContext) |
| Modifier and Type | Method and Description |
|---|---|
Object |
createNewInstance(Object ownerInstance,
CreationalContextImpl<?> ownerCreationalContext)
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 |
setAroundInvoke(Method m) |
void |
setAroundTimeout(Method m) |
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 m,
Class<? extends Annotation> annotation)
Sets the interceptor method.
|
protected void |
setPostActivate(Method m) |
protected void |
setPostConstruct(Method m) |
protected void |
setPreDestroy(Method m) |
protected void |
setPrePassivate(Method m) |
void |
setWebBeansInterceptor(javax.enterprise.inject.spi.Interceptor<?> webBeansInterceptor)
Sets JSR 299 style interceptor.
|
String |
toString() |
public InterceptorDataImpl(boolean isDefinedWithWebBeansInterceptor,
WebBeansContext webBeansContext)
public InterceptorDataImpl(boolean isDefinedWithWebBeansInterceptor,
WebBeansDecoratorInterceptor decoratorInterceptor,
WebBeansContext webBeansContext)
public Class<?> getInterceptorClass()
InterceptorDatagetInterceptorClass in interface InterceptorDatapublic void setInterceptorClass(Class<?> clazz)
InterceptorDatasetInterceptorClass in interface InterceptorDataclazz - interceptor classpublic void setInterceptorMethod(Method m, Class<? extends Annotation> annotation)
InterceptorDataAnnotation is in
PostConstructPreDestroyAroundInvokesetInterceptorMethod in interface InterceptorDatam - interceptor methodannotation - interceptor annotation classpublic void setAroundInvoke(Method m)
public void setAroundTimeout(Method m)
protected void setPostConstruct(Method m)
protected void setPostActivate(Method m)
protected void setPreDestroy(Method m)
protected void setPrePassivate(Method m)
public Method getPostConstruct()
InterceptorDataPostConstruct annotated method if exist
return null otherwise.getPostConstruct in interface InterceptorDatapublic Method getPostActivate()
InterceptorDatajavax.ejb.PostActivate annotated method if exist
return null otherwise.getPostActivate in interface InterceptorDatapublic Method getPreDestroy()
InterceptorDataPreDestroy annotated method
if exist, returns null otherwise.getPreDestroy in interface InterceptorDatapublic Method getPrePassivate()
InterceptorDatajavax.ejb.PrePassivate annotated method if exist
return null otherwise.getPrePassivate in interface InterceptorDatapublic Method getAroundInvoke()
InterceptorDataAroundInvoke annotated method
if exist, returns null otherwise.getAroundInvoke in interface InterceptorDatapublic Method getAroundTimeout()
InterceptorDataAroundTimeout annotated method
if exist, returns null otherwise.getAroundTimeout in interface InterceptorDatapublic boolean isDefinedInInterceptorClass()
InterceptorDataisDefinedInInterceptorClass in interface InterceptorDatapublic void setDefinedInInterceptorClass(boolean definedInInterceptorClass)
InterceptorDataInterceptor is defined by the bean itself or defined by the interceptor class.
setDefinedInInterceptorClass in interface InterceptorDatadefinedInInterceptorClass - defined in interceptor classpublic boolean isDefinedInMethod()
InterceptorDataisDefinedInMethod in interface InterceptorDatapublic void setDefinedInMethod(boolean definedInMethod)
InterceptorDatasetDefinedInMethod in interface InterceptorDatadefinedInMethod - defined in method flagpublic Method getInterceptorBindingMethod()
InterceptorDatagetInterceptorBindingMethod in interface InterceptorDatapublic void setInterceptorBindingMethod(Method annotatedMethod)
InterceptorDatasetInterceptorBindingMethod in interface InterceptorDataannotatedMethod - interceptor annotated method.public boolean isDefinedWithWebBeansInterceptor()
InterceptorDataisDefinedWithWebBeansInterceptor in interface InterceptorDatapublic javax.enterprise.inject.spi.Interceptor<?> getWebBeansInterceptor()
InterceptorDatagetWebBeansInterceptor in interface InterceptorDatapublic void setWebBeansInterceptor(javax.enterprise.inject.spi.Interceptor<?> webBeansInterceptor)
InterceptorDatasetWebBeansInterceptor in interface InterceptorDatawebBeansInterceptor - the webBeansInterceptor to setpublic Method getInterceptorMethod()
InterceptorDatagetInterceptorMethod in interface InterceptorDatapublic boolean isLifecycleInterceptor()
InterceptorDataisLifecycleInterceptor in interface InterceptorDatapublic Object createNewInstance(Object ownerInstance, CreationalContextImpl<?> ownerCreationalContext)
InterceptorDatacreateNewInstance in interface InterceptorDataownerInstance - The underlying instance the interceptor will be associated with, or any key to be used in its placeownerCreationalContext - The context that will cache the created instance under the ownerInstance keyCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.