org.jboss.metadata.annotation.creator
Class ResourceClassProcessor

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
All Implemented Interfaces:
Processor<RemoteEnvironmentRefsGroupMetaData,Class>
Direct Known Subclasses:
ResourcesClassProcessor

public class ResourceClassProcessor
extends AbstractResourceProcessor<Class>
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: 75470 $
Author:
Scott.Stark@jboss.org

Field Summary
 
Fields inherited from class org.jboss.metadata.annotation.creator.AbstractFinderUser
finder
 
Constructor Summary
ResourceClassProcessor(AnnotationFinder<AnnotatedElement> finder)
           
 
Method Summary
protected  String getDeclaringClass(Class element)
           
protected  String getInjectionName(Class element)
           
protected  String getName(Class element)
          Get the resource name based on the AnnotatedElement
protected  String getType(Class element)
           
 
Methods inherited from class org.jboss.metadata.annotation.creator.AbstractResourceProcessor
createEntry, createMessageRef, createResourceEnvRef, createResourceRef, createServiceRef, getAnnotationTypes, isEnvEntry, isMessageDestinationRef, isResourceRef, isServiceRef, process, 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
 
Methods inherited from interface org.jboss.metadata.annotation.creator.Processor
getAnnotationTypes, process
 

Constructor Detail

ResourceClassProcessor

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

getName

protected String getName(Class element)
Description copied from class: AbstractResourceProcessor
Get the resource name based on the AnnotatedElement

Specified by:
getName in class AbstractResourceProcessor<Class>
Returns:

getInjectionName

protected String getInjectionName(Class element)
Specified by:
getInjectionName in class AbstractResourceProcessor<Class>

getType

protected String getType(Class element)
Specified by:
getType in class AbstractResourceProcessor<Class>

getDeclaringClass

protected String getDeclaringClass(Class element)
Specified by:
getDeclaringClass in class AbstractResourceProcessor<Class>


Copyright © 2009 JBoss Inc.. All Rights Reserved.