org.jboss.metadata.annotation.creator
Class ResourceClassProcessor
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
- 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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceClassProcessor
public ResourceClassProcessor(AnnotationFinder<AnnotatedElement> finder)
- Parameters:
finder
-
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 © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.