|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.event.BeanEventAdapter
public class BeanEventAdapter
A cache and factory class for obtaining EventType
instances and EventBean
instances
for Java Bean events. The class caches EventType
instances already known for performance reasons.
Constructor Summary | |
---|---|
BeanEventAdapter(Map<String,ConfigurationEventTypeLegacy> classToLegacyConfigs)
Ctor. |
Method Summary | |
---|---|
EventBean |
adapterForBean(Object event)
Returns an adapter for the given Java Bean. |
BeanEventType |
createOrGetBeanType(Class clazz)
Creates a new EventType object for a java bean of the specified class if this is the first time the class has been seen. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanEventAdapter(Map<String,ConfigurationEventTypeLegacy> classToLegacyConfigs)
classToLegacyConfigs
- us a map of event type alias to legacy event type configMethod Detail |
---|
public EventBean adapterForBean(Object event)
event
- is the bean to wrap
public final BeanEventType createOrGetBeanType(Class clazz)
clazz
- is the class of the Java bean.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |