public class PropertyListBuilderExplicit extends java.lang.Object implements PropertyListBuilder
Constructor and Description |
---|
PropertyListBuilderExplicit(ConfigurationEventTypeLegacy legacyConfig)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public PropertyListBuilderExplicit(ConfigurationEventTypeLegacy legacyConfig)
legacyConfig
- is a legacy type specification containing
information about explicitly configured fields and methodspublic java.util.List<InternalEventPropDescriptor> assessProperties(java.lang.Class clazz)
PropertyListBuilder
assessProperties
in interface PropertyListBuilder
clazz
- to introspectprotected static void getExplicitProperties(java.util.List<InternalEventPropDescriptor> result, java.lang.Class clazz, ConfigurationEventTypeLegacy legacyConfig)
result
- is the resulting list of event property descriptorsclazz
- is the class to introspectlegacyConfig
- supplies specification of explicit methods and fields to exposeprotected static InternalEventPropDescriptor makeFieldDesc(java.lang.reflect.Field field, java.lang.String name)
field
- is the public fieldname
- is the name of the event propertyprotected static InternalEventPropDescriptor makeMethodDesc(java.lang.reflect.Method method, java.lang.String name)
method
- is the public methodname
- is the name of the event property