Package jaxx.runtime.context
Annotation Type DefaultApplicationContext.MethodAccess
- Enclosing class:
- DefaultApplicationContext
@Retention(RUNTIME)
@Target(TYPE)
public static @interface DefaultApplicationContext.MethodAccess
A class annotated @MethodAccess is used by context to obtain the
value of an entry via a declared method.
Note : A such class must have a method called
methodName() with
a single String parameter.- Since:
- 1.2
- Version:
- 1.0, 21/02/09
- Author:
- Tony Chemit - chemit@codelutin.com
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringmethodName -
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<?>targetDefine a forward to a target class.
-
Element Details
-
methodName
java.lang.String methodName- Returns:
- the name of the method to access data
-
-
-
target
java.lang.Class<?> targetDefine a forward to a target class. When the target class will be asked with methodJAXXContext.getContextValue(Class, String)it will be delegating to this class.- Returns:
- the forwarded class
- Default:
- java.lang.Object.class
-