org.oddjob.arooa.deploy
Class ArooaDescriptorDescriptor

java.lang.Object
  extended by org.oddjob.arooa.deploy.ArooaDescriptorDescriptor
All Implemented Interfaces:
ArooaDescriptor, BeanDescriptorProvider

public class ArooaDescriptorDescriptor
extends Object
implements ArooaDescriptor

An ArooaDescriptor for a ArooaConfiguration that provides and ArooaDescriptorBean.

Author:
rob

Constructor Summary
ArooaDescriptorDescriptor()
           
 
Method Summary
 ArooaBeanDescriptor getBeanDescriptor(ArooaClass classIdentifier, PropertyAccessor accessor)
           
 ClassResolver getClassResolver()
          Provide a ClassResolver.
 ConversionProvider getConvertletProvider()
          Provide type conversions.
 ElementMappings getElementMappings()
          Provide element to class name mappings for components.
 String getPrefixFor(URI namespace)
          Provide the default prefix for a URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArooaDescriptorDescriptor

public ArooaDescriptorDescriptor()
Method Detail

getElementMappings

public ElementMappings getElementMappings()
Description copied from interface: ArooaDescriptor
Provide element to class name mappings for components.

Specified by:
getElementMappings in interface ArooaDescriptor
Returns:
ElementMappings. Must not be null.

getConvertletProvider

public ConversionProvider getConvertletProvider()
Description copied from interface: ArooaDescriptor
Provide type conversions.

Specified by:
getConvertletProvider in interface ArooaDescriptor
Returns:
A ConvertletProvider. May be null.

getBeanDescriptor

public ArooaBeanDescriptor getBeanDescriptor(ArooaClass classIdentifier,
                                             PropertyAccessor accessor)
Specified by:
getBeanDescriptor in interface BeanDescriptorProvider
Parameters:
classIdentifier - 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.

getPrefixFor

public String getPrefixFor(URI namespace)
Description copied from interface: ArooaDescriptor
Provide the default prefix for a URI. This is required when building an ArooaConfiguration using a ArooaDesigner so that the correct XML namespace mappings can defined.

Specified by:
getPrefixFor in interface ArooaDescriptor
Parameters:
namespace - The namespace.
Returns:
The prefix.

getClassResolver

public ClassResolver getClassResolver()
Description copied from interface: ArooaDescriptor
Provide a ClassResolver. The resolver will typically be able to resolve classes returned from the ElementMappings provided by this descriptor.

Specified by:
getClassResolver in interface ArooaDescriptor
Returns:
A ClassResolver. Must not be null.