public class PropertyHelper extends Object
Constructor and Description |
---|
PropertyHelper() |
Modifier and Type | Method and Description |
---|---|
protected static void |
addIntrospectProperties(Class clazz,
List<InternalEventPropDescriptor> 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(Class clazz,
List<InternalEventPropDescriptor> result)
Adds to the given list of property descriptors the mapped properties, ie.
|
static EventPropertyGetterSPI |
getGetter(Method method,
net.sf.cglib.reflect.FastClass fastClass,
EventAdapterService eventAdapterService)
Return getter for the given method and CGLIB FastClass.
|
static String |
getGetterMethodName(String propertyName) |
static String |
getIsMethodName(String propertyName) |
static List<InternalEventPropDescriptor> |
getProperties(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.
|
static String |
getSetterMethodName(String propertyName) |
static Set<WriteablePropertyDescriptor> |
getWritableProperties(Class clazz)
Introspects the given class and returns event property descriptors for each writable property found
in the class itself, it's superclasses and all interfaces this class and the superclasses implements.
|
protected static PropertyDescriptor[] |
introspect(Class clazz)
Using the Java Introspector class the method returns the property descriptors obtained through introspection.
|
protected static void |
removeDuplicateProperties(List<InternalEventPropDescriptor> properties)
Removed duplicate properties using the property name to find unique properties.
|
protected static void |
removeJavaProperties(List<InternalEventPropDescriptor> properties)
Remove Java language specific properties from the given list of property descriptors.
|
public static EventPropertyGetterSPI getGetter(Method method, net.sf.cglib.reflect.FastClass fastClass, EventAdapterService eventAdapterService)
method
- to return getter forfastClass
- is the CGLIB fast classs to make FastMethod foreventAdapterService
- factory for event beans and event typespublic static List<InternalEventPropDescriptor> getProperties(Class clazz)
clazz
- is the Class to introspectpublic static Set<WriteablePropertyDescriptor> getWritableProperties(Class clazz)
clazz
- is the Class to introspectprotected static void removeJavaProperties(List<InternalEventPropDescriptor> properties)
properties
- is the list of property descriptorsprotected static void removeDuplicateProperties(List<InternalEventPropDescriptor> properties)
properties
- is a list of property descriptorsprotected static void addIntrospectProperties(Class clazz, List<InternalEventPropDescriptor> result)
clazz
- to introspectresult
- is the list to add toprotected static void addMappedProperties(Class clazz, List<InternalEventPropDescriptor> result)
clazz
- to introspectresult
- is the list to add toprotected static PropertyDescriptor[] introspect(Class clazz)
clazz
- to introspect