|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.fikin.pojostate.select.AbstractSelector
public abstract class AbstractSelector
Abstract implementation of Selector interface.
It provides with default implementation for
getMethodMeta(Class, Method, Locale, ClassLoader)
based on defined by
subclasses two factory methods.
created on Mar 1, 2007
Constructor Summary | |
---|---|
AbstractSelector()
|
Method Summary | |
---|---|
MethodMeta |
getMethodMeta(java.lang.Class clazz,
java.lang.reflect.Method method,
java.util.Locale locale,
java.lang.ClassLoader loader)
test if the method is applicable by calling isApplicable(Class, Method, Locale, ClassLoader)
and creates new property via
newMethodMeta(Class, Method, Locale, ClassLoader) if yes. |
protected abstract boolean |
isApplicable(java.lang.Class clazz,
java.lang.reflect.Method method,
java.util.Locale locale,
java.lang.ClassLoader loader)
test if given method is to be observed |
protected abstract MethodMeta |
newMethodMeta(java.lang.Class clazz,
java.lang.reflect.Method method,
java.util.Locale locale,
java.lang.ClassLoader loader)
instantiate new method metadata object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractSelector()
Method Detail |
---|
public MethodMeta getMethodMeta(java.lang.Class clazz, java.lang.reflect.Method method, java.util.Locale locale, java.lang.ClassLoader loader) throws DecorationException
isApplicable(Class, Method, Locale, ClassLoader)
and creates new property via
newMethodMeta(Class, Method, Locale, ClassLoader)
if yes.
returns null if not applicable
getMethodMeta
in interface Selector
clazz
- is POJO's classmethod
- which is to be to be examinedlocale
- to be used when creating the metadataloader
- is the classloader to be used to load any resource
file (if required)
MethodMeta
if this method a suitable for
inclusion in State
and null if it is not
DecorationException
- in case of internal errorprotected abstract boolean isApplicable(java.lang.Class clazz, java.lang.reflect.Method method, java.util.Locale locale, java.lang.ClassLoader loader) throws DecorationException
clazz
- is POJO's classmethod
- which is to be to be examinedlocale
- to be used when creating the metadataloader
- is the classloader to be used to load any resource
file (if required)
State
method, otherwise false.
DecorationException
protected abstract MethodMeta newMethodMeta(java.lang.Class clazz, java.lang.reflect.Method method, java.util.Locale locale, java.lang.ClassLoader loader) throws DecorationException
clazz
- is POJO's classmethod
- which is to be to be examinedlocale
- to be used when creating the metadataloader
- is the classloader to be used to load any resource
file (if required)
MethodMeta
object
DecorationException
- in case of internal error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |