org.oddjob.arooa.deploy
Class LinkedBeanDescriptor

java.lang.Object
  extended by org.oddjob.arooa.deploy.LinkedBeanDescriptor
All Implemented Interfaces:
ArooaBeanDescriptor

public class LinkedBeanDescriptor
extends Object
implements ArooaBeanDescriptor

Link together two BeanDescriptors.

Author:
rob

Constructor Summary
LinkedBeanDescriptor(ArooaBeanDescriptor primary, ArooaBeanDescriptor secondary)
           
 
Method Summary
 ArooaAnnotations getAnnotations()
          Provide annotation information about methods.
 String getComponentProperty()
          The name of the component property.
 ConfiguredHow getConfiguredHow(String property)
          How is a property configured.
 String getFlavour(String property)
          Get the property flavour.
 ParsingInterceptor getParsingInterceptor()
          Get The ParsingInterceptor.
 String getTextProperty()
          The name of the property which can be set using the text of an xml element.
 boolean isAuto(String property)
          Indicates that the property should be set automatically from the services.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedBeanDescriptor

public LinkedBeanDescriptor(ArooaBeanDescriptor primary,
                            ArooaBeanDescriptor secondary)
Method Detail

getComponentProperty

public String getComponentProperty()
Description copied from interface: ArooaBeanDescriptor
The name of the component property.

Specified by:
getComponentProperty in interface ArooaBeanDescriptor
Returns:

getConfiguredHow

public ConfiguredHow getConfiguredHow(String property)
Description copied from interface: ArooaBeanDescriptor
How is a property configured.

Specified by:
getConfiguredHow in interface ArooaBeanDescriptor
Parameters:
property - The property name.
Returns:
How the property is configured. Never null.

getFlavour

public String getFlavour(String property)
Description copied from interface: ArooaBeanDescriptor
Get the property flavour. This is for services.

Specified by:
getFlavour in interface ArooaBeanDescriptor
Parameters:
property - The property name.
Returns:
The flavour. May be null.

getParsingInterceptor

public ParsingInterceptor getParsingInterceptor()
Description copied from interface: ArooaBeanDescriptor
Get The ParsingInterceptor.

Specified by:
getParsingInterceptor in interface ArooaBeanDescriptor
Returns:

getTextProperty

public String getTextProperty()
Description copied from interface: ArooaBeanDescriptor
The name of the property which can be set using the text of an xml element. At most only one property can be set using the text of an element.

The actual property name is required because unlike components and values, the property name can not be derrived from an element name.

Specified by:
getTextProperty in interface ArooaBeanDescriptor
Returns:
The name of the property to be set using the text of the element. Will be null if the class doesn't support setting element text.

isAuto

public boolean isAuto(String property)
Description copied from interface: ArooaBeanDescriptor
Indicates that the property should be set automatically from the services.

Specified by:
isAuto in interface ArooaBeanDescriptor
Parameters:
property - The property name.
Returns:
true if the property can be set automatically, false otherwise.

getAnnotations

public ArooaAnnotations getAnnotations()
Description copied from interface: ArooaBeanDescriptor
Provide annotation information about methods. Used to allow life cycle methods, and any other custom annotation methods to defined separately from the class.

Specified by:
getAnnotations in interface ArooaBeanDescriptor
Returns:
The annotations.