|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.properties.internal.DefaultBeanDescriptor
public class DefaultBeanDescriptor
Default implementation for BeanDescriptor.
| Constructor Summary | |
|---|---|
DefaultBeanDescriptor(java.lang.Class<?> beanClass)
|
|
| Method Summary | ||
|---|---|---|
protected void |
extractBeanDescriptor()
Extract informations form the bean. |
|
protected
|
extractPropertyAnnotation(java.lang.reflect.Method writeMethod,
java.lang.reflect.Method readMethod,
java.lang.Class<T> annotationClass)
Get the parameter annotation. |
|
protected void |
extractPropertyDescriptor(java.lang.reflect.Field field,
java.lang.Object defaultInstance)
Extract provided properties informations and insert it in parameterDescriptorMap. |
|
protected void |
extractPropertyDescriptor(java.beans.PropertyDescriptor propertyDescriptor,
java.lang.Object defaultInstance)
Extract provided properties information and insert it in parameterDescriptorMap. |
|
java.lang.Class<?> |
getBeanClass()
|
|
java.util.Collection<PropertyDescriptor> |
getProperties()
|
|
PropertyDescriptor |
getProperty(java.lang.String propertyName)
Return descriptor for the provided property name. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultBeanDescriptor(java.lang.Class<?> beanClass)
beanClass - the class of the JAVA bean.| Method Detail |
|---|
protected void extractBeanDescriptor()
protected void extractPropertyDescriptor(java.beans.PropertyDescriptor propertyDescriptor,
java.lang.Object defaultInstance)
parameterDescriptorMap.
propertyDescriptor - the JAVA bean property descriptor.defaultInstance - the default instance of bean class.
protected void extractPropertyDescriptor(java.lang.reflect.Field field,
java.lang.Object defaultInstance)
parameterDescriptorMap.
field - the JAVA bean property descriptor.defaultInstance - the default instance of bean class.
protected <T extends java.lang.annotation.Annotation> T extractPropertyAnnotation(java.lang.reflect.Method writeMethod,
java.lang.reflect.Method readMethod,
java.lang.Class<T> annotationClass)
T - the Class object corresponding to the annotation type.writeMethod - the method that should be used to write the property value.readMethod - the method that should be used to read the property value.annotationClass - the Class object corresponding to the annotation type.
public java.lang.Class<?> getBeanClass()
getBeanClass in interface BeanDescriptorBeanDescriptor.getBeanClass()public java.util.Collection<PropertyDescriptor> getProperties()
getProperties in interface BeanDescriptorBeanDescriptor.getProperties()public PropertyDescriptor getProperty(java.lang.String propertyName)
getProperty in interface BeanDescriptorpropertyName - the name of the property
BeanDescriptor.getProperty(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||