|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.jee.inject.Jsr250Metadata
org.springframework.jee.intercept.InterceptorMetadata
public class InterceptorMetadata
Class representing metadata about an interceptor class. Includes JSR-250 metadata that can drive injection and lifecycle callbacks, and identification of an around invoke method on the class. The latter information is often, but not necessarily, supplied using an annotation.
Field Summary |
---|
Fields inherited from class org.springframework.jee.inject.Jsr250Metadata |
---|
KEY, log |
Constructor Summary | |
---|---|
InterceptorMetadata(java.lang.Class<?> componentClass,
java.lang.reflect.Method aroundInvokeMethod)
Construct new class level interceptor metadata with component name defaulting to the FQN of the component class |
|
InterceptorMetadata(java.lang.Class<?> componentClass,
java.lang.reflect.Method aroundInvokeMethod,
java.lang.reflect.Method matchingMethod)
Construct new method level interceptor metadata with component name defaulting to the FQN of the component class |
|
InterceptorMetadata(Jsr250Metadata jsr250,
java.lang.reflect.Method aroundInvokeMethod)
Create a new Interceptor metadata for a self interceptor. |
Method Summary | |
---|---|
java.lang.reflect.Method |
getAroundInvokeMethod()
|
java.util.List<java.lang.reflect.Method> |
getLifecycleEventListenerMethod(LifecycleEvent le)
Return the invocation-context style method for this callback |
java.lang.reflect.Method |
getMatchingMethod()
|
boolean |
isClassInterceptor()
|
boolean |
isDefaultInterceptor()
|
void |
registerLifecycleEventListenerMethod(LifecycleEvent le,
java.lang.reflect.Method m)
|
void |
setClassInterceptor(boolean classInterceptor)
|
void |
setComponentContext(org.springframework.context.ApplicationContext beanFactoryForInstance,
org.springframework.beans.factory.support.BeanDefinitionRegistry bdr)
|
void |
setDefaultInterceptor(boolean defaultInterceptor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public InterceptorMetadata(java.lang.Class<?> componentClass, java.lang.reflect.Method aroundInvokeMethod, java.lang.reflect.Method matchingMethod)
componentClass
- aroundInvokeMethod
- matchingMethod
- public InterceptorMetadata(java.lang.Class<?> componentClass, java.lang.reflect.Method aroundInvokeMethod)
componentClass
- aroundInvokeMethod
- public InterceptorMetadata(Jsr250Metadata jsr250, java.lang.reflect.Method aroundInvokeMethod)
jsr250
- Jsr250 metadata we should wraparoundInvokeMethod
- aroundInvoke method to use on the instanceMethod Detail |
---|
public void registerLifecycleEventListenerMethod(LifecycleEvent le, java.lang.reflect.Method m)
public java.util.List<java.lang.reflect.Method> getLifecycleEventListenerMethod(LifecycleEvent le)
public java.lang.reflect.Method getAroundInvokeMethod()
public java.lang.reflect.Method getMatchingMethod()
public boolean isClassInterceptor()
public void setClassInterceptor(boolean classInterceptor)
classInterceptor
- the classInterceptor to setpublic boolean isDefaultInterceptor()
public void setDefaultInterceptor(boolean defaultInterceptor)
defaultInterceptor
- the defaultInterceptor to setpublic void setComponentContext(org.springframework.context.ApplicationContext beanFactoryForInstance, org.springframework.beans.factory.support.BeanDefinitionRegistry bdr)
setComponentContext
in class Jsr250Metadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |