net.esper.event.property
Class DynamicMappedPropertyGetter
java.lang.Object
net.esper.event.property.DynamicPropertyGetterBase
net.esper.event.property.DynamicMappedPropertyGetter
- All Implemented Interfaces:
- EventPropertyGetter
public class DynamicMappedPropertyGetter
- extends DynamicPropertyGetterBase
- implements EventPropertyGetter
Getter for a dynamic mapped property (syntax field.mapped('key')?), using vanilla reflection.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicMappedPropertyGetter
public DynamicMappedPropertyGetter(String fieldName,
String key)
- Ctor.
- Parameters:
fieldName
- property namekey
- mapped access key
determineMethod
public Method determineMethod(Class clazz)
throws PropertyAccessException
- Description copied from class:
DynamicPropertyGetterBase
- To be implemented to return the method required, or null to indicate an appropriate method could not be found.
- Specified by:
determineMethod
in class DynamicPropertyGetterBase
- Parameters:
clazz
- to search for a matching method
- Returns:
- method if found, or null if no matching method exists
- Throws:
PropertyAccessException
call
protected Object call(DynamicPropertyDescriptor descriptor,
Object underlying)
- Description copied from class:
DynamicPropertyGetterBase
- Call the getter to obtains the return result object, or null if no such method exists.
- Specified by:
call
in class DynamicPropertyGetterBase
- Parameters:
descriptor
- provides method information for the classunderlying
- is the underlying object to ask for the property value
- Returns:
- underlying