|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.event.BeanEventType
public class BeanEventType
Implementation of the EventType interface for handling JavaBean-type classes.
Constructor Summary | |
---|---|
BeanEventType(Class clazz,
BeanEventAdapter beanEventAdapter,
ConfigurationEventTypeLegacy optionalLegacyDef)
Constructor takes a java bean class as an argument. |
Method Summary | |
---|---|
Iterator<EventType> |
getDeepSuperTypes()
Returns iterator over all super types to event type, going up the hierarchy and including all Java interfaces (and their extended interfaces) and superclasses as EventType instances. |
net.sf.cglib.reflect.FastClass |
getFastClass()
Returns the fast class reference, if code generation is used for this type, else null. |
EventPropertyGetter |
getGetter(String propertyName)
Get the getter for a specified event property. |
EventPropertyDescriptor |
getIndexedProperty(String propertyName)
Looks up and returns a cached indexed property's descriptor. |
EventPropertyDescriptor |
getMappedProperty(String propertyName)
Looks up and returns a cached mapped property's descriptor. |
String[] |
getPropertyNames()
Get all valid property names for the event type. |
Class |
getPropertyType(String propertyName)
Get the type of an event property as returned by the "getter" method for that property. |
EventPropertyDescriptor |
getSimpleProperty(String propertyName)
Looks up and returns a cached simple property's descriptor. |
protected static void |
getSuper(Class clazz,
Set<Class> result)
Add the given class's implemented interfaces and superclasses to the result set of classes. |
EventType[] |
getSuperTypes()
Returns an array of event types that are super to this event type, from which this event type inherited event properties. |
Class |
getUnderlyingType()
Get the class that represents the Java type of the event type. |
boolean |
isProperty(String propertyName)
Check that the given property name is valid for this event type, ie. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BeanEventType(Class clazz, BeanEventAdapter beanEventAdapter, ConfigurationEventTypeLegacy optionalLegacyDef)
clazz
- is the class of a java bean or other POJObeanEventAdapter
- is the chache and factory for event bean types and event wrappersoptionalLegacyDef
- optional configuration supplying legacy event type informationMethod Detail |
---|
public final Class getPropertyType(String propertyName)
EventType
getPropertyType
in interface EventType
propertyName
- is the property name
public boolean isProperty(String propertyName)
EventType
isProperty
in interface EventType
propertyName
- is the property to check
public final Class getUnderlyingType()
EventType
getUnderlyingType
in interface EventType
public EventPropertyGetter getGetter(String propertyName)
EventType
getGetter
in interface EventType
propertyName
- is the property name
public final EventPropertyDescriptor getSimpleProperty(String propertyName)
propertyName
- to look up
public final EventPropertyDescriptor getMappedProperty(String propertyName)
propertyName
- to look up
public final EventPropertyDescriptor getIndexedProperty(String propertyName)
propertyName
- to look up
public String[] getPropertyNames()
EventType
getPropertyNames
in interface EventType
public EventType[] getSuperTypes()
EventType
For Java bean instances underlying the event this method returns the event types for all superclasses extended by the Java bean and all interfaces implemented by the Java bean.
getSuperTypes
in interface EventType
public Iterator<EventType> getDeepSuperTypes()
EventType
getDeepSuperTypes
in interface EventType
public net.sf.cglib.reflect.FastClass getFastClass()
public String toString()
toString
in class Object
protected static void getSuper(Class clazz, Set<Class> result)
clazz
- to introspectresult
- to add classes to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |