|
||||||||||
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.
Nested Class Summary | |
---|---|
class |
BeanEventType.SimplePropertyInfo
Descriptor caching the getter, class and property info. |
Constructor Summary | |
---|---|
BeanEventType(Class clazz,
BeanEventTypeFactory beanEventTypeFactory,
ConfigurationEventTypeLegacy optionalLegacyDef,
String alias)
Constructor takes a java bean class as an argument. |
Method Summary | |
---|---|
String |
getAlias()
Returns the event type alias. |
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. |
Configuration.PropertyResolutionStyle |
getPropertyResolutionStyle()
Returns the property resolution style. |
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, BeanEventTypeFactory beanEventTypeFactory, ConfigurationEventTypeLegacy optionalLegacyDef, String alias)
clazz
- is the class of a java bean or other POJObeanEventTypeFactory
- is the chache and factory for event bean types and event wrappersoptionalLegacyDef
- optional configuration supplying legacy event type informationalias
- is the event type alias for the classMethod 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 Configuration.PropertyResolutionStyle getPropertyResolutionStyle()
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 String getAlias()
For classes for which no alias has been defined, the alias is the fully-qualified class name.
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 |