org.apache.felix.scrplugin.tags.annotation
Class AnnotationTagProviderManager

java.lang.Object
  extended by org.apache.felix.scrplugin.tags.annotation.AnnotationTagProviderManager

public class AnnotationTagProviderManager
extends Object

Supports mapping of built-in and custom java anntoations to JavaTag implementations.


Constructor Summary
AnnotationTagProviderManager(String[] annotationTagProviderClasses, ClassLoader classLoader)
           
 
Method Summary
 List<JavaTag> getTags(com.thoughtworks.qdox.model.Annotation annotation, AnnotationJavaClassDescription description)
          Converts a java annotation to JavaTag if a mapping can be found.
 List<JavaTag> getTags(com.thoughtworks.qdox.model.Annotation annotation, AnnotationJavaClassDescription description, JavaField field)
          Converts a java annotation to JavaTag if a mapping can be found.
 boolean hasScrPluginAnnotation(com.thoughtworks.qdox.model.JavaClass pClass)
          Checks if the given class has any SCR plugin java annotations defined.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationTagProviderManager

public AnnotationTagProviderManager(String[] annotationTagProviderClasses,
                                    ClassLoader classLoader)
                             throws SCRDescriptorFailureException
Parameters:
annotationTagProviderClasses - List of classes that implements AnnotationTagProvider interface.
Throws:
SCRDescriptorFailureException
Method Detail

getTags

public List<JavaTag> getTags(com.thoughtworks.qdox.model.Annotation annotation,
                             AnnotationJavaClassDescription description)
Converts a java annotation to JavaTag if a mapping can be found.

Parameters:
annotation - Java annotation
description - Description
Returns:
Tag declaration or null if no mapping found

getTags

public List<JavaTag> getTags(com.thoughtworks.qdox.model.Annotation annotation,
                             AnnotationJavaClassDescription description,
                             JavaField field)
Converts a java annotation to JavaTag if a mapping can be found.

Parameters:
annotation - Java annotation
description - Description
field - Field
Returns:
Tag declaration or null if no mapping found

hasScrPluginAnnotation

public boolean hasScrPluginAnnotation(com.thoughtworks.qdox.model.JavaClass pClass)
Checks if the given class has any SCR plugin java annotations defined.

Parameters:
pClass - Class
Returns:
true if SCR plugin java annotation found


Copyright © 2011 Apache Software Foundation. All Rights Reserved.