Package org.eclnt.jsfserver.util
Class BeanIntrospector
java.lang.Object
org.eclnt.jsfserver.util.BeanIntrospector
Central class for introspecting properties of a class via reflection.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Derive bean name out of "raw name".static String
buildMethodNameFromPropertyName
(String methodPrefix, String propertyName) Builds method name out of propertyName for setting/getting properties.static boolean
readProperties
(Class cl) The list of properties is always stable within one virtual machine - so you can use the list for purposes in which the list is required to be stable.readProperty
(Class cl, String propertyName) static void
-
Constructor Details
-
BeanIntrospector
public BeanIntrospector()
-
-
Method Details
-
resetBuffers
public static void resetBuffers() -
readPropertiesAsList
The list of properties is always stable within one virtual machine - so you can use the list for purposes in which the list is required to be stable. Example: if calculating a hash code out of the properties then the sequence of properties must be stable in order to properly calculate the hash code. -
readProperty
public static BeanIntrospector.PropertyIntrospectionInfo readProperty(Class cl, String propertyName) -
readProperties
-
checkIfSimpleDataType
-
buildBeanPropertyNameFromPartialMethodName
Derive bean name out of "raw name". The "raw name" is the name of the method without "get" or "is". -
buildMethodNameFromPropertyName
Builds method name out of propertyName for setting/getting properties.- Parameters:
methodPrefix
- "set,"get","is",...propertyName
- The property name, e.g. "firstName"- Returns:
- The full method name e.g. "setFirstName"
-