org.oddjob.arooa.deploy
Class SyntheticArooaAnnotation

java.lang.Object
  extended by org.oddjob.arooa.deploy.SyntheticArooaAnnotation
All Implemented Interfaces:
ArooaAnnotation

public class SyntheticArooaAnnotation
extends Object
implements ArooaAnnotation

An ArooaAnnotation created just from a String from a descriptor.

Author:
rob

Constructor Summary
SyntheticArooaAnnotation(String annotationName)
          Constructor.
 
Method Summary
 String getName()
          Get the name.
<T extends Annotation>
T
realAnnotation(Class<T> annotationType)
          Provide the real annotation if this is a wrapper for a real annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntheticArooaAnnotation

public SyntheticArooaAnnotation(String annotationName)
Constructor.

Parameters:
annotationName - The name of the annotation.
Method Detail

getName

public String getName()
Description copied from interface: ArooaAnnotation
Get the name.

Specified by:
getName in interface ArooaAnnotation
Returns:
The name of annotation.

realAnnotation

public <T extends Annotation> T realAnnotation(Class<T> annotationType)
Description copied from interface: ArooaAnnotation
Provide the real annotation if this is a wrapper for a real annotation. Null otherwise.

Specified by:
realAnnotation in interface ArooaAnnotation
Parameters:
annotationType - The annotation this might be a wrapper for.
Returns:
The annotation or null.