|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.event.BeanEventBean
public class BeanEventBean
Wrapper for Java bean (POJO or regular) Java objects the represent events.
Allows access to event properties, which is done through the getter supplied by the event type.
EventType
instances containing type information are obtained from BeanEventTypeFactory
.
Two BeanEventBean instances are equal if they have the same event type and refer to the same instance of event object.
Clients that need to compute equality between Java beans wrapped by this class need to obtain the underlying object.
Constructor Summary | |
---|---|
BeanEventBean(Object event,
EventType eventType)
Constructor. |
Method Summary | |
---|---|
Object |
get(String property)
Returns the value of an event property. |
EventType |
getEventType()
Return the EventType instance that describes the set of properties available for this event. |
Object |
getUnderlying()
Get the underlying data object to this event wrapper. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BeanEventBean(Object event, EventType eventType)
event
- is the event objecteventType
- is the schema information for the event object.Method Detail |
---|
public Object getUnderlying()
EventBean
getUnderlying
in interface EventBean
public EventType getEventType()
EventBean
EventType
instance that describes the set of properties available for this event.
getEventType
in interface EventBean
public Object get(String property) throws IllegalArgumentException, PropertyAccessException
EventBean
get
in interface EventBean
property
- - name of the property whose value is to be retrieved
PropertyAccessException
- - if there is no property of the specified name, or the property cannot be accessed
IllegalArgumentException
public String toString()
toString
in class Object
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |