|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.event.property.PropertyHelper
public class PropertyHelper
This class offers utililty methods around introspection and CGLIB interaction.
Constructor Summary | |
---|---|
PropertyHelper()
|
Method Summary | |
---|---|
protected static void |
addIntrospectProperties(java.lang.Class clazz,
java.util.List<EventPropertyDescriptor> result)
Adds to the given list of property descriptors the properties of the given class using the Introspector to introspect properties. |
protected static void |
addMappedProperties(java.lang.Class clazz,
java.util.List<EventPropertyDescriptor> result)
Adds to the given list of property descriptors the mapped properties, ie. |
static EventPropertyGetter |
getGetter(java.lang.reflect.Method method,
net.sf.cglib.reflect.FastClass fastClass)
Return getter for the given method and CGLIB FastClass. |
static java.util.List<EventPropertyDescriptor> |
getProperties(java.lang.Class clazz)
Introspects the given class and returns event property descriptors for each property found in the class itself, it's superclasses and all interfaces this class and the superclasses implements. |
protected static java.beans.PropertyDescriptor[] |
introspect(java.lang.Class clazz)
Using the Java Introspector class the method returns the property descriptors obtained through introspection. |
protected static void |
removeDuplicateProperties(java.util.List<EventPropertyDescriptor> properties)
Removed duplicate properties using the property name to find unique properties. |
protected static void |
removeJavaProperties(java.util.List<EventPropertyDescriptor> properties)
Remove Java language specific properties from the given list of property descriptors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyHelper()
Method Detail |
---|
public static EventPropertyGetter getGetter(java.lang.reflect.Method method, net.sf.cglib.reflect.FastClass fastClass)
method
- to return getter forfastClass
- is the CGLIB fast classs to make FastMethod for
public static java.util.List<EventPropertyDescriptor> getProperties(java.lang.Class clazz)
clazz
- is the Class to introspect
protected static void removeJavaProperties(java.util.List<EventPropertyDescriptor> properties)
properties
- is the list of property descriptorsprotected static void removeDuplicateProperties(java.util.List<EventPropertyDescriptor> properties)
properties
- is a list of property descriptorsprotected static void addIntrospectProperties(java.lang.Class clazz, java.util.List<EventPropertyDescriptor> result)
clazz
- to introspectresult
- is the list to add toprotected static void addMappedProperties(java.lang.Class clazz, java.util.List<EventPropertyDescriptor> result)
clazz
- to introspectresult
- is the list to add toprotected static java.beans.PropertyDescriptor[] introspect(java.lang.Class clazz)
clazz
- to introspect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |