public class EventBeanServiceImpl extends Object implements EventBeanService
Constructor and Description |
---|
EventBeanServiceImpl(EventTypeRepositoryImpl eventTypeRepositoryPreconfigured,
PathRegistry<String,EventType> pathEventTypes,
EventBeanTypedEventFactory typedEventFactory) |
Modifier and Type | Method and Description |
---|---|
EventBean |
adapterForAvro(Object avroGenericDataDotRecord,
String eventTypeName)
Construct an event bean for a given Avro GenericData.Record using the event type name to look up the Avro event type
|
EventBean |
adapterForBean(Object theEvent,
String eventTypeName)
Construct an event bean for a given bean (Object, POJO) using the class of the object to determine the Bean-only event type (not for Map/Object-Array/Avro/XML events)
|
EventBean |
adapterForDOM(Node node,
String eventTypeName)
Construct an event bean for a given XML-DOM using the node root node name to look up the XML-DOM event type
|
EventBean |
adapterForMap(Map<String,Object> theEvent,
String eventTypeName)
Construct an event bean for a given Map using the event type name to look up the Map event type
|
EventBean |
adapterForObjectArray(Object[] theEvent,
String eventTypeName)
Construct an event bean for a given Object-Array using the event type name to look up the Object-Array event type
|
EventBean |
adapterForTypedAvro(Object avroGenericDataDotRecord,
EventType eventType)
Construct an event bean for a given Avro GenericData.Record and given the Avro-event-type
|
EventBean |
adapterForTypedBean(Object bean,
EventType eventType)
Construct an event bean for a given bean (Object, POJO) and given the Bean-event-type
|
EventBean |
adapterForTypedDOM(Node node,
EventType eventType)
Construct an event bean for a given Node and given the XML-event-type
|
EventBean |
adapterForTypedMap(Map<String,Object> properties,
EventType eventType)
Construct an event bean for a given Map and given the Map-event-type
|
EventBean |
adapterForTypedObjectArray(Object[] props,
EventType eventType)
Construct an event bean for a given Object-Array and given the Object-Array-event-type
|
EventType |
getExistsTypeByName(String eventTypeName)
Look up an event type by name,
|
public EventBeanServiceImpl(EventTypeRepositoryImpl eventTypeRepositoryPreconfigured, PathRegistry<String,EventType> pathEventTypes, EventBeanTypedEventFactory typedEventFactory)
public EventBean adapterForMap(Map<String,Object> theEvent, String eventTypeName)
EventBeanService
adapterForMap
in interface EventBeanService
theEvent
- event underlyingeventTypeName
- name of the Map event typepublic EventBean adapterForBean(Object theEvent, String eventTypeName)
EventBeanService
adapterForBean
in interface EventBeanService
theEvent
- event underlyingeventTypeName
- event type namepublic EventBean adapterForAvro(Object avroGenericDataDotRecord, String eventTypeName)
EventBeanService
adapterForAvro
in interface EventBeanService
avroGenericDataDotRecord
- event underlyingeventTypeName
- name of the Avro event typepublic EventBean adapterForObjectArray(Object[] theEvent, String eventTypeName)
EventBeanService
adapterForObjectArray
in interface EventBeanService
theEvent
- event underlyingeventTypeName
- name of the Object-Array event typepublic EventBean adapterForDOM(Node node, String eventTypeName)
EventBeanService
adapterForDOM
in interface EventBeanService
node
- event underlyingeventTypeName
- event type namepublic EventType getExistsTypeByName(String eventTypeName)
EventBeanService
getExistsTypeByName
in interface EventBeanService
eventTypeName
- to look uppublic EventBean adapterForTypedBean(Object bean, EventType eventType)
EventBeanService
adapterForTypedBean
in interface EventBeanService
bean
- event underlyingeventType
- event type (Bean only)public EventBean adapterForTypedAvro(Object avroGenericDataDotRecord, EventType eventType)
EventBeanService
adapterForTypedAvro
in interface EventBeanService
avroGenericDataDotRecord
- event underlyingeventType
- event type (Avro only)public EventBean adapterForTypedMap(Map<String,Object> properties, EventType eventType)
EventBeanService
adapterForTypedMap
in interface EventBeanService
properties
- event underlyingeventType
- event type (Map only)public EventBean adapterForTypedObjectArray(Object[] props, EventType eventType)
EventBeanService
adapterForTypedObjectArray
in interface EventBeanService
props
- event underlyingeventType
- event type (Object-array only)public EventBean adapterForTypedDOM(Node node, EventType eventType)
EventBeanService
adapterForTypedDOM
in interface EventBeanService
node
- event underlyingeventType
- event type (XML only)Copyright © 2005–2018. All rights reserved.