com.espertech.esper.event.bean
Class DynamicSimplePropertyGetter

java.lang.Object
  extended by com.espertech.esper.event.bean.DynamicPropertyGetterBase
      extended by com.espertech.esper.event.bean.DynamicSimplePropertyGetter
All Implemented Interfaces:
EventPropertyGetter, BeanEventPropertyGetter

public class DynamicSimplePropertyGetter
extends DynamicPropertyGetterBase

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


Constructor Summary
DynamicSimplePropertyGetter(java.lang.String fieldName, EventAdapterService eventAdapterService)
          Ctor.
 
Method Summary
protected  java.lang.Object call(DynamicPropertyDescriptor descriptor, java.lang.Object underlying)
          Call the getter to obtains the return result object, or null if no such method exists.
protected  java.lang.reflect.Method determineMethod(java.lang.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 com.espertech.esper.event.bean.DynamicPropertyGetterBase
get, getBeanProp, getFragment, isBeanExistsProperty, isExistsProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicSimplePropertyGetter

public DynamicSimplePropertyGetter(java.lang.String fieldName,
                                   EventAdapterService eventAdapterService)
Ctor.

Parameters:
fieldName - the property name
eventAdapterService - factory for event beans and event types
Method Detail

call

protected java.lang.Object call(DynamicPropertyDescriptor descriptor,
                                java.lang.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 java.lang.reflect.Method determineMethod(java.lang.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

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com