org.oddjob.arooa.deploy
Class DefaultBeanDescriptorProvider

java.lang.Object
  extended by 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

Constructor Summary
DefaultBeanDescriptorProvider()
           
 
Method Summary
 PropertyDefinitionsHelper getBeanDescriptor(ArooaClass arooaClass, PropertyAccessor accessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBeanDescriptorProvider

public DefaultBeanDescriptorProvider()
Method Detail

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