public class PropertyListBuilderExplicit extends Object implements PropertyListBuilder
Constructor and Description |
---|
PropertyListBuilderExplicit(ConfigurationEventTypeLegacy legacyConfig)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
List<InternalEventPropDescriptor> |
assessProperties(Class clazz)
Introspect the clazz and deterime exposed event properties.
|
protected static void |
getExplicitProperties(List<InternalEventPropDescriptor> result,
Class clazz,
ConfigurationEventTypeLegacy legacyConfig)
Populates explicitly-defined properties into the result list.
|
protected static InternalEventPropDescriptor |
makeFieldDesc(Field field,
String name)
Makes a simple-type event property descriptor based on a reflected field.
|
protected static InternalEventPropDescriptor |
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.
|
public PropertyListBuilderExplicit(ConfigurationEventTypeLegacy legacyConfig)
legacyConfig
- is a legacy type specification containing
information about explicitly configured fields and methodspublic List<InternalEventPropDescriptor> assessProperties(Class clazz)
PropertyListBuilder
assessProperties
in interface PropertyListBuilder
clazz
- to introspectprotected static void getExplicitProperties(List<InternalEventPropDescriptor> result, 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(Field field, String name)
field
- is the public fieldname
- is the name of the event propertyprotected static InternalEventPropDescriptor makeMethodDesc(Method method, String name)
method
- is the public methodname
- is the name of the event property