|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.ThreadLocal<java.util.Set<java.lang.String>>
org.springframework.config.java.aspect.RequiredMethodInvocationRegistry
public class RequiredMethodInvocationRegistry
Thread-local storage for recording which beans' required methods have been invoked. Used in
conjunction with RequiredMethodInvocationTracker.
Currently limited to recording methods annotated with @Required (as opposed
to Spring's ability to track user-specified annotations. This has to do with limitations in
AspectJ - it is currently not possible to change the definition of a pointcut at runtime.
| Constructor Summary | |
|---|---|
RequiredMethodInvocationRegistry()
|
|
| Method Summary | |
|---|---|
void |
clear()
Remove all method invocation records from the registry. |
protected java.util.Set<java.lang.String> |
initialValue()
|
void |
interrogateRequiredMethods(java.lang.Object bean,
java.lang.String beanName)
Interrogate any @Required methods within bean and determine
whether they have been invoked. |
void |
registerMethodInvocation(java.lang.Object bean,
java.lang.String className,
java.lang.String methodName)
Record the invocation of a @Required method for later interrogation. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.ThreadLocal |
|---|
get, remove, set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RequiredMethodInvocationRegistry()
| Method Detail |
|---|
protected java.util.Set<java.lang.String> initialValue()
initialValue in class java.lang.ThreadLocal<java.util.Set<java.lang.String>>
public void registerMethodInvocation(java.lang.Object bean,
java.lang.String className,
java.lang.String methodName)
@Required method for later interrogation.
bean - object instance being on which methodName is being invokedclassName - declaring class for methodNamemethodName - Required method currently being invokedinterrogateRequiredMethods(Object, String)
public void interrogateRequiredMethods(java.lang.Object bean,
java.lang.String beanName)
@Required methods within bean and determine
whether they have been invoked.
bean - object to interrogatebeanName - id/name of bean within its respective BeanFactorypublic void clear()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||