|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.intercept.InterceptorDataImpl
public class InterceptorDataImpl
Abstract implementation of the InterceptorData api contract.
| Constructor Summary | |
|---|---|
InterceptorDataImpl(boolean isDefinedWithWebBeansInterceptor,
WebBeansContext webBeansContext)
|
|
InterceptorDataImpl(boolean isDefinedWithWebBeansInterceptor,
WebBeansDecoratorInterceptor decoratorInterceptor,
WebBeansContext webBeansContext)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InterceptorDataImpl(boolean isDefinedWithWebBeansInterceptor,
WebBeansContext webBeansContext)
public InterceptorDataImpl(boolean isDefinedWithWebBeansInterceptor,
WebBeansDecoratorInterceptor decoratorInterceptor,
WebBeansContext webBeansContext)
| Method Detail |
|---|
public Class<?> getInterceptorClass()
InterceptorData
getInterceptorClass in interface InterceptorDatapublic void setInterceptorClass(Class<?> clazz)
InterceptorData
setInterceptorClass in interface InterceptorDataclazz - interceptor class
public void setInterceptorMethod(Method m,
Class<? extends Annotation> annotation)
InterceptorDataAnnotation is in
PostConstructPreDestroyAroundInvoke
setInterceptorMethod 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()
InterceptorData
isDefinedInInterceptorClass 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()
InterceptorData
isDefinedInMethod in interface InterceptorDatapublic void setDefinedInMethod(boolean definedInMethod)
InterceptorData
setDefinedInMethod in interface InterceptorDatadefinedInMethod - defined in method flagpublic Method getInterceptorBindingMethod()
InterceptorData
getInterceptorBindingMethod in interface InterceptorDatapublic void setInterceptorBindingMethod(Method annotatedMethod)
InterceptorData
setInterceptorBindingMethod in interface InterceptorDataannotatedMethod - interceptor annotated method.public boolean isDefinedWithWebBeansInterceptor()
InterceptorData
isDefinedWithWebBeansInterceptor in interface InterceptorDatapublic javax.enterprise.inject.spi.Interceptor<?> getWebBeansInterceptor()
InterceptorData
getWebBeansInterceptor in interface InterceptorDatapublic void setWebBeansInterceptor(javax.enterprise.inject.spi.Interceptor<?> webBeansInterceptor)
InterceptorData
setWebBeansInterceptor in interface InterceptorDatawebBeansInterceptor - the webBeansInterceptor to setpublic Method getInterceptorMethod()
InterceptorData
getInterceptorMethod in interface InterceptorDatapublic boolean isLifecycleInterceptor()
InterceptorData
isLifecycleInterceptor in interface InterceptorData
public Object createNewInstance(Object ownerInstance,
CreationalContextImpl<?> ownerCreationalContext)
InterceptorData
createNewInstance 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 key
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||