|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.event.EventAdapterServiceBase
net.esper.event.EventAdapterServiceImpl
public class EventAdapterServiceImpl
Provides event adapter services through it's base class.
Constructor Summary | |
---|---|
EventAdapterServiceImpl()
|
Method Summary | |
---|---|
EventBean |
adapterForBean(Object event)
Wrap the native event returning an EventBean . |
EventType |
addBeanType(String eventTypeAlias,
Class clazz)
Add an event type with the given alias and Java class. |
EventType |
addBeanType(String eventTypeAlias,
String className)
Add an event type with the given alias and Java fully-qualified class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventAdapterServiceImpl()
Method Detail |
---|
public EventType addBeanType(String eventTypeAlias, Class clazz) throws EventAdapterException
EventAdapterService
If the alias already exists with the same Class, returns the existing EventType instance.
If the alias already exists with different Class name, throws an exception.
If the alias does not already exists, adds the alias and constructs a new BeanEventType
.
eventTypeAlias
- is the alias name for the event typeclazz
- is the fully Java class
EventAdapterException
- if alias already exists and doesn't match class namespublic EventType addBeanType(String eventTypeAlias, String className) throws EventAdapterException
EventAdapterService
If the alias already exists with the same class name, returns the existing EventType instance.
If the alias already exists with different class name, throws an exception.
If the alias does not already exists, adds the alias and constructs a new BeanEventType
.
eventTypeAlias
- is the alias name for the event typeclassName
- is the fully qualified class name
EventAdapterException
- if alias already exists and doesn't match class namespublic EventBean adapterForBean(Object event)
EventAdapterService
EventBean
.
event
- to be wrapped
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |