net.sf.fikin.pojostate
Interface Selector

All Known Implementing Classes:
AbstractSelector, BeanMethodsSelector, NEFormatterSelector, ResourceBundleSelector

public interface Selector

Selectors are used to select only those POJO methods which are suitable for State.

Selectors are used by Decorator. created on Jul 18, 2005

Since:
Version:
$Revision: 1.2 $
Author:
fiykov

Method Summary
 MethodMeta getMethodMeta(java.lang.Class clazz, java.lang.reflect.Method method, java.util.Locale locale, java.lang.ClassLoader loader)
          get method's property object if it is recognized as suitable for State.
 

Method Detail

getMethodMeta

MethodMeta getMethodMeta(java.lang.Class clazz,
                         java.lang.reflect.Method method,
                         java.util.Locale locale,
                         java.lang.ClassLoader loader)
                         throws DecorationException
get method's property object if it is recognized as suitable for State.

It returns Property because differences between a genuine Method's Meta and Property are only in getValue() method.

Parameters:
clazz - is POJO's class
method - which is to be to be examined
locale - to be used when creating the metadata
loader - is the classloader to be used to load any resource file (if required)
Returns:
a valid MethodMeta if this method a suitable for inclusion in State and null if it is not
Throws:
DecorationException - in case of internal error


Copyright © 2005 Nikolay Fiykov. All Rights Reserved.