com.espertech.esper.event.bean
Class PropertyListBuilderExplicit

java.lang.Object
  extended by com.espertech.esper.event.bean.PropertyListBuilderExplicit
All Implemented Interfaces:
PropertyListBuilder

public class PropertyListBuilderExplicit
extends java.lang.Object
implements PropertyListBuilder

Introspector that considers explicitly configured event properties only.


Constructor Summary
PropertyListBuilderExplicit(ConfigurationEventTypeLegacy legacyConfig)
          Ctor.
 
Method Summary
 java.util.List<InternalEventPropDescriptor> assessProperties(java.lang.Class clazz)
          Introspect the clazz and deterime exposed event properties.
protected static void getExplicitProperties(java.util.List<InternalEventPropDescriptor> result, java.lang.Class clazz, ConfigurationEventTypeLegacy legacyConfig)
          Populates explicitly-defined properties into the result list.
protected static InternalEventPropDescriptor makeFieldDesc(java.lang.reflect.Field field, java.lang.String name)
          Makes a simple-type event property descriptor based on a reflected field.
protected static InternalEventPropDescriptor makeMethodDesc(java.lang.reflect.Method method, java.lang.String name)
          Makes an event property descriptor based on a reflected method, considering the methods parameters to determine if this is an indexed or mapped event property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyListBuilderExplicit

public PropertyListBuilderExplicit(ConfigurationEventTypeLegacy legacyConfig)
Ctor.

Parameters:
legacyConfig - is a legacy type specification containing information about explicitly configured fields and methods
Method Detail

assessProperties

public java.util.List<InternalEventPropDescriptor> assessProperties(java.lang.Class clazz)
Description copied from interface: PropertyListBuilder
Introspect the clazz and deterime exposed event properties.

Specified by:
assessProperties in interface PropertyListBuilder
Parameters:
clazz - to introspect
Returns:
list of event property descriptors

getExplicitProperties

protected static void getExplicitProperties(java.util.List<InternalEventPropDescriptor> result,
                                            java.lang.Class clazz,
                                            ConfigurationEventTypeLegacy legacyConfig)
Populates explicitly-defined properties into the result list.

Parameters:
result - is the resulting list of event property descriptors
clazz - is the class to introspect
legacyConfig - supplies specification of explicit methods and fields to expose

makeFieldDesc

protected static InternalEventPropDescriptor makeFieldDesc(java.lang.reflect.Field field,
                                                           java.lang.String name)
Makes a simple-type event property descriptor based on a reflected field.

Parameters:
field - is the public field
name - is the name of the event property
Returns:
property descriptor

makeMethodDesc

protected static InternalEventPropDescriptor makeMethodDesc(java.lang.reflect.Method method,
                                                            java.lang.String name)
Makes an event property descriptor based on a reflected method, considering the methods parameters to determine if this is an indexed or mapped event property.

Parameters:
method - is the public method
name - is the name of the event property
Returns:
property descriptor

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