org.oddjob.arooa.deploy
Class DefaultBeanDescriptorProvider
java.lang.Object
org.oddjob.arooa.deploy.DefaultBeanDescriptorProvider
- All Implemented Interfaces:
- BeanDescriptorProvider
public class DefaultBeanDescriptorProvider
- extends Object
- implements BeanDescriptorProvider
Provide a default descriptor with configured how based on the types of
the property. String and Primitive type properties are attributes,
everything else is elements.
- Author:
- rob
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBeanDescriptorProvider
public DefaultBeanDescriptorProvider()
getBeanDescriptor
public PropertyDefinitionsHelper getBeanDescriptor(ArooaClass arooaClass,
PropertyAccessor accessor)
throws ArooaPropertyException
- Specified by:
getBeanDescriptor
in interface BeanDescriptorProvider
- Parameters:
arooaClass
- The class.accessor
- Used to access the bean properties for default
types.
- Returns:
- The bean descriptor, null if this provider
isn't capable of providing it.
- Throws:
ArooaPropertyException