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.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: 72364 $
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
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)
           
 
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 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)
Specified by:
process in interface Processor<RemoteEnvironmentRefsGroupMetaData,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.