org.jboss.metadata.annotation.creator
Class ResourcesClassProcessor

java.lang.Object
  extended by org.jboss.metadata.annotation.creator.AbstractFinderUser
      extended by org.jboss.metadata.annotation.creator.AbstractInjectionTargetProcessor<E>
          extended by org.jboss.metadata.annotation.creator.AbstractResourceProcessor<Class>
              extended by org.jboss.metadata.annotation.creator.ResourceClassProcessor
                  extended by 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

Field Summary
 
Fields inherited from class org.jboss.metadata.annotation.creator.AbstractFinderUser
finder
 
Constructor Summary
ResourcesClassProcessor(AnnotationFinder<AnnotatedElement> finder)
           
 
Method Summary
 Collection<Class<? extends Annotation>> getAnnotationTypes()
          Get the annotations handled by this processor.
protected  String getDeclaringClass(Class element)
           
protected  String getName(Class element)
          Get the resource name based on the AnnotatedElement
protected  String getType(Class element)
           
 void process(RemoteEnvironmentRefsGroupMetaData metaData, Class type)
          Process a piece of meta data.
 
Methods inherited from class org.jboss.metadata.annotation.creator.ResourceClassProcessor
getInjectionName
 
Methods inherited from class org.jboss.metadata.annotation.creator.AbstractResourceProcessor
createEntry, createMessageRef, createResourceEnvRef, createResourceRef, createServiceRef, isEnvEntry, isMessageDestinationRef, isResourceRef, isServiceRef, process
 
Methods inherited from class org.jboss.metadata.annotation.creator.AbstractInjectionTargetProcessor
addReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourcesClassProcessor

public ResourcesClassProcessor(AnnotationFinder<AnnotatedElement> finder)
Parameters:
finder -
Method Detail

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 data
type - 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 © 2009 JBoss Inc.. All Rights Reserved.