org.jboss.metadata.annotation.creator
Class ResourcesClassProcessor
java.lang.Object
org.jboss.metadata.annotation.creator.AbstractFinderUser
org.jboss.metadata.annotation.creator.AbstractInjectionTargetProcessor<E>
org.jboss.metadata.annotation.creator.AbstractResourceProcessor<Class>
org.jboss.metadata.annotation.creator.ResourceClassProcessor
org.jboss.metadata.annotation.creator.ResourcesClassProcessor
- All Implemented Interfaces:
- Processor<RemoteEnvironmentRefsGroupMetaData,Class>
public class ResourcesClassProcessor
- extends ResourceClassProcessor
- implements Processor<RemoteEnvironmentRefsGroupMetaData,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: 76002 $
- 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(RemoteEnvironmentRefsGroupMetaData metaData,
Class type)
- Description copied from interface:
Processor
- Process a piece of meta data.
- Specified by:
process
in interface Processor<RemoteEnvironmentRefsGroupMetaData,Class>
- Overrides:
process
in class AbstractResourceProcessor<Class>
- Parameters:
metaData
- the meta datatype
- the annotated element
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
getAnnotationTypes
public Collection<Class<? extends Annotation>> getAnnotationTypes()
- Description copied from interface:
Processor
- Get the annotations handled by this processor.
- Specified by:
getAnnotationTypes
in interface Processor<RemoteEnvironmentRefsGroupMetaData,Class>
- Overrides:
getAnnotationTypes
in class AbstractResourceProcessor<Class>
- Returns:
- the processed annotation types
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.