Class PropertyListBuilderExplicit
java.lang.Object
com.espertech.esper.common.internal.event.bean.introspect.PropertyListBuilderExplicit
- All Implemented Interfaces:
PropertyListBuilder
Introspector that considers explicitly configured event properties only.
-
Constructor Summary
ConstructorDescriptionPropertyListBuilderExplicit
(ConfigurationCommonEventTypeBean legacyConfig) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionassessProperties
(Class clazz) Introspect the clazz and deterime exposed event properties.protected static void
getExplicitProperties
(List<PropertyStem> result, Class clazz, ConfigurationCommonEventTypeBean legacyConfig) Populates explicitly-defined properties into the result list.protected static PropertyStem
makeFieldDesc
(Field field, String name) Makes a simple-type event property descriptor based on a reflected field.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.
-
Constructor Details
-
PropertyListBuilderExplicit
Ctor.- Parameters:
legacyConfig
- is a legacy type specification containing information about explicitly configured fields and methods
-
-
Method Details
-
assessProperties
Description copied from interface:PropertyListBuilder
Introspect the clazz and deterime exposed event properties.- Specified by:
assessProperties
in interfacePropertyListBuilder
- 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 descriptorsclazz
- is the class to introspectlegacyConfig
- supplies specification of explicit methods and fields to expose
-
makeFieldDesc
Makes a simple-type event property descriptor based on a reflected field.- Parameters:
field
- is the public fieldname
- is the name of the event property- Returns:
- property descriptor
-
makeMethodDesc
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 methodname
- is the name of the event property- Returns:
- property descriptor
-