org.oddjob.arooa.deploy
Class NoAnnotations

java.lang.Object
  extended by org.oddjob.arooa.deploy.NoAnnotations
All Implemented Interfaces:
ArooaAnnotations

public class NoAnnotations
extends Object
implements ArooaAnnotations

A no-op implementation of ArooaAnnotations

Author:
rob

Constructor Summary
NoAnnotations()
           
 
Method Summary
 String[] annotatedProperties()
          Provide all properties that are annotated.
 ArooaAnnotation annotationForProperty(String propertyName, String annotationName)
          Get the Annotation for a property by annotation name.
 ArooaAnnotation[] annotationsForProperty(String propertyName)
          Get all the annotations for a property.
 Method methodFor(String annotationName)
          Get the method for an annotation name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoAnnotations

public NoAnnotations()
Method Detail

methodFor

public Method methodFor(String annotationName)
Description copied from interface: ArooaAnnotations
Get the method for an annotation name.

Specified by:
methodFor in interface ArooaAnnotations
Parameters:
annotationName - The annotation name.
Returns:
the method for the annotation name, or null if there isn't one.

annotatedProperties

public String[] annotatedProperties()
Description copied from interface: ArooaAnnotations
Provide all properties that are annotated.

Specified by:
annotatedProperties in interface ArooaAnnotations
Returns:
Array of properties or an empty array. Never null.

annotationsForProperty

public ArooaAnnotation[] annotationsForProperty(String propertyName)
Description copied from interface: ArooaAnnotations
Get all the annotations for a property.

Specified by:
annotationsForProperty in interface ArooaAnnotations
Parameters:
propertyName - The property name.
Returns:
An array of annotations, may be empty, never null.

annotationForProperty

public ArooaAnnotation annotationForProperty(String propertyName,
                                             String annotationName)
Description copied from interface: ArooaAnnotations
Get the Annotation for a property by annotation name.

Specified by:
annotationForProperty in interface ArooaAnnotations
Parameters:
propertyName - The name of the property.
annotationName - The name of the annotation.
Returns:
The annotation, or null if one doesn't exist.