net.esper.event
Class EventAdapterServiceImpl

java.lang.Object
  extended by net.esper.event.EventAdapterServiceBase
      extended by net.esper.event.EventAdapterServiceImpl
All Implemented Interfaces:
EventAdapterService

public class EventAdapterServiceImpl
extends EventAdapterServiceBase

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 net.esper.event.EventAdapterServiceBase
adapterForBean, adapterForCompositeEvent, adapterForDOM, adapterForMap, addBeanTypeByAliasAndClassName, addBeanTypeByAliasAndClazz, addMapType, addWrapperType, addXMLDOMType, createAddToEventType, createAnonymousCompositeType, createAnonymousMapType, createAnonymousMapTypeUnd, createAnonymousWrapperType, createMapFromUnderlying, createMapFromValues, createWrapper, getAliasById, getExistsTypeByAlias, getIdByAlias, getIdByType, getTypeById, setClassLegacyConfigs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventAdapterServiceImpl

public EventAdapterServiceImpl()
Method Detail

addBeanType

public EventType addBeanType(String eventTypeAlias,
                             Class clazz)
                      throws EventAdapterException
Description copied from interface: EventAdapterService
Add an event type with the given alias and Java class.

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.

Parameters:
eventTypeAlias - is the alias name for the event type
clazz - is the fully Java class
Returns:
event type is the type added
Throws:
EventAdapterException - if alias already exists and doesn't match class names

addBeanType

public EventType addBeanType(String eventTypeAlias,
                             String className)
                      throws EventAdapterException
Description copied from interface: EventAdapterService
Add an event type with the given alias and Java fully-qualified class name.

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.

Parameters:
eventTypeAlias - is the alias name for the event type
className - is the fully qualified class name
Returns:
event type is the type added
Throws:
EventAdapterException - if alias already exists and doesn't match class names

adapterForBean

public EventBean adapterForBean(Object event)
Description copied from interface: EventAdapterService
Wrap the native event returning an EventBean.

Parameters:
event - to be wrapped
Returns:
event bean wrapping native underlying event