org.jboss.metadata.annotation.creator
Class ResourcesClassProcessor
java.lang.Object
org.jboss.metadata.annotation.creator.AbstractFinderUser
org.jboss.metadata.annotation.creator.AbstractResourceProcessor<Class>
org.jboss.metadata.annotation.creator.ResourceClassProcessor
org.jboss.metadata.annotation.creator.ResourcesClassProcessor
- All Implemented Interfaces:
- Processor<EnvironmentRefsGroupMetaData,Class>
public class ResourcesClassProcessor
- extends ResourceClassProcessor
- implements Processor<EnvironmentRefsGroupMetaData,Class>
If the annotation is applied to a class, the annotation declares a resource
that the application will look up at runtime. Even though this annotation is
not marked Inherited, if used all superclasses MUST be examined to discover
all uses of this annotation. All such annotation instances specify resources
that are needed by the application. Note that this annotation may appear on
private fields and methods of the superclasses. Injection of the declared
resources needs to happen in these cases as well, even if a method with such
an annotation is overridden by a subclass.
- Version:
- $Revision: 66917 $
- Author:
- Scott.Stark@jboss.org
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourcesClassProcessor
public ResourcesClassProcessor(AnnotationFinder<AnnotatedElement> finder)
- Parameters:
finder -
process
public void process(EnvironmentRefsGroupMetaData metaData,
Class type)
- Specified by:
process in interface Processor<EnvironmentRefsGroupMetaData,Class>- Overrides:
process in class AbstractResourceProcessor<Class>
getName
protected String getName(Class element)
- Description copied from class:
AbstractResourceProcessor
- Get the resource name based on the AnnotatedElement
- Overrides:
getName in class ResourceClassProcessor
- Returns:
getType
protected String getType(Class element)
- Overrides:
getType in class ResourceClassProcessor
getDeclaringClass
protected String getDeclaringClass(Class element)
- Overrides:
getDeclaringClass in class ResourceClassProcessor
Copyright ? 2008 JBoss, A division of Red Hat. All Rights Reserved.