net.esper.event.property
Class DynamicSimplePropertyGetter

java.lang.Object
  extended by net.esper.event.property.DynamicPropertyGetterBase
      extended by net.esper.event.property.DynamicSimplePropertyGetter
All Implemented Interfaces:
EventPropertyGetter

public class DynamicSimplePropertyGetter
extends DynamicPropertyGetterBase
implements EventPropertyGetter

Getter for a dynamic property (syntax field.inner?), using vanilla reflection.


Constructor Summary
DynamicSimplePropertyGetter(String fieldName)
          Ctor.
 
Method Summary
protected  Object call(DynamicPropertyDescriptor descriptor, Object underlying)
          Call the getter to obtains the return result object, or null if no such method exists.
protected  Method determineMethod(Class clazz)
          To be implemented to return the method required, or null to indicate an appropriate method could not be found.
 
Methods inherited from class net.esper.event.property.DynamicPropertyGetterBase
get, isExistsProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.esper.event.EventPropertyGetter
get, isExistsProperty
 

Constructor Detail

DynamicSimplePropertyGetter

public DynamicSimplePropertyGetter(String fieldName)
Ctor.

Parameters:
fieldName - the property name
Method Detail

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 class
underlying - is the underlying object to ask for the property value
Returns:
underlying

determineMethod

protected Method determineMethod(Class clazz)
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

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com