Class PropertyListBuilderExplicit

java.lang.Object
com.espertech.esper.common.internal.event.bean.introspect.PropertyListBuilderExplicit
All Implemented Interfaces:
PropertyListBuilder

public class PropertyListBuilderExplicit extends Object implements PropertyListBuilder
Introspector that considers explicitly configured event properties only.
  • Constructor Details

    • PropertyListBuilderExplicit

      public PropertyListBuilderExplicit(ConfigurationCommonEventTypeBean legacyConfig)
      Ctor.
      Parameters:
      legacyConfig - is a legacy type specification containing information about explicitly configured fields and methods
  • Method Details

    • assessProperties

      public List<PropertyStem> assessProperties(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(List<PropertyStem> result, Class clazz, ConfigurationCommonEventTypeBean 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 PropertyStem makeFieldDesc(Field field, 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 PropertyStem makeMethodDesc(Method method, 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