public class EventAdapterServiceHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EventAdapterServiceHelper.EventBeanAdapterFactoryBean |
static class |
EventAdapterServiceHelper.EventBeanAdapterFactoryMap |
static class |
EventAdapterServiceHelper.EventBeanAdapterFactoryObjectArray |
static class |
EventAdapterServiceHelper.EventBeanAdapterFactoryXml |
Constructor and Description |
---|
EventAdapterServiceHelper() |
Modifier and Type | Method and Description |
---|---|
static EventBean |
adapterForType(Object theEvent,
EventType eventType,
EventAdapterService eventAdapterService)
Return an adapter for the given type of event using the pre-validated object.
|
static EventBeanAdapterFactory |
getAdapterFactoryForType(EventType eventType) |
static EventBeanFactory |
getFactoryForType(EventType type,
EventAdapterService eventAdapterService) |
static EventBeanManufacturer |
getManufacturer(EventAdapterService eventAdapterService,
EventType eventType,
WriteablePropertyDescriptor[] properties,
EngineImportService engineImportService,
boolean allowAnyType,
EventAdapterAvroHandler avroHandler)
Returns a factory for creating and populating event object instances for the given type.
|
static String |
getMessageExpecting(String eventTypeName,
EventType existingType,
String typeOfEventType) |
static EventBeanSPI |
getShellForType(EventType eventType) |
static Set<WriteablePropertyDescriptor> |
getWriteableProperties(EventType eventType,
boolean allowAnyType)
Returns descriptors for all writable properties.
|
static EventBean[] |
typeCast(List<EventBean> events,
EventType targetType,
EventAdapterService eventAdapterService) |
public static String getMessageExpecting(String eventTypeName, EventType existingType, String typeOfEventType)
public static EventBeanFactory getFactoryForType(EventType type, EventAdapterService eventAdapterService)
public static Set<WriteablePropertyDescriptor> getWriteableProperties(EventType eventType, boolean allowAnyType)
eventType
- to reflect onallowAnyType
- whether any type property can be populatedpublic static EventBean adapterForType(Object theEvent, EventType eventType, EventAdapterService eventAdapterService)
theEvent
- value objecteventType
- type of eventeventAdapterService
- service for instancespublic static EventBeanManufacturer getManufacturer(EventAdapterService eventAdapterService, EventType eventType, WriteablePropertyDescriptor[] properties, EngineImportService engineImportService, boolean allowAnyType, EventAdapterAvroHandler avroHandler) throws EventBeanManufactureException
eventAdapterService
- fatory for eventeventType
- to create underlying objects forproperties
- to writeengineImportService
- for resolving methodsallowAnyType
- whether any type property can be populatedavroHandler
- avro handlerEventBeanManufactureException
- if a factory cannot be created for the typepublic static EventBean[] typeCast(List<EventBean> events, EventType targetType, EventAdapterService eventAdapterService)
public static EventBeanSPI getShellForType(EventType eventType)
public static EventBeanAdapterFactory getAdapterFactoryForType(EventType eventType)