org.apache.geronimo.j2ee.deployment.annotation
Class ResourceAnnotationHelper.ResourceProcessor

java.lang.Object
  extended by org.apache.geronimo.j2ee.deployment.annotation.AnnotationHelper
      extended by org.apache.geronimo.j2ee.deployment.annotation.ResourceAnnotationHelper.ResourceProcessor
Direct Known Subclasses:
AdminObjectRefBuilder.AdminObjectRefProcessor, EnvironmentEntryBuilder.EnvEntryRefProcessor, ResourceRefBuilder.ResourceRefProcessor, SwitchingServiceRefBuilder.ServiceRefProcessor
Enclosing class:
ResourceAnnotationHelper

public abstract static class ResourceAnnotationHelper.ResourceProcessor
extends AnnotationHelper


Constructor Summary
ResourceAnnotationHelper.ResourceProcessor()
           
 
Method Summary
protected static String getResourceName(Resource annotation, Method method, Field field)
          Resource name: -- When annotation is applied on a class: Name must be provided (cannot be inferred) -- When annotation is applied on a method: Name is JavaBeans property name qualified by the class (or as provided on the annotation) -- When annotation is applied on a field: Name is the field name qualified by the class (or as provided on the annotation)
protected static String getResourceType(Resource annotation, Method method, Field field)
           
abstract  boolean processResource(AnnotatedApp annotatedApp, Resource annotation, Class cls, Method method, Field field)
           
 
Methods inherited from class org.apache.geronimo.j2ee.deployment.annotation.AnnotationHelper
configureInjectionTarget, getInjectionClass, getInjectionJavaType, hasTarget, validateDD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceAnnotationHelper.ResourceProcessor

public ResourceAnnotationHelper.ResourceProcessor()
Method Detail

processResource

public abstract boolean processResource(AnnotatedApp annotatedApp,
                                        Resource annotation,
                                        Class cls,
                                        Method method,
                                        Field field)
                                 throws DeploymentException
Throws:
DeploymentException

getResourceName

protected static String getResourceName(Resource annotation,
                                        Method method,
                                        Field field)
Resource name: -- When annotation is applied on a class: Name must be provided (cannot be inferred) -- When annotation is applied on a method: Name is JavaBeans property name qualified by the class (or as provided on the annotation) -- When annotation is applied on a field: Name is the field name qualified by the class (or as provided on the annotation)

Parameters:
annotation -
method -
field -
Returns:

getResourceType

protected static String getResourceType(Resource annotation,
                                        Method method,
                                        Field field)


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.