org.apache.geronimo.j2ee.deployment.annotation
Class HandlerChainAnnotationHelper

java.lang.Object
  extended by org.apache.geronimo.j2ee.deployment.annotation.AnnotationHelper
      extended by org.apache.geronimo.j2ee.deployment.annotation.HandlerChainAnnotationHelper

public final class HandlerChainAnnotationHelper
extends AnnotationHelper

Static helper class used to encapsulate all the functions related to the translation of @HandlerChain annotations to deployment descriptor tags. The HandlerChainAnnotationHelper class can be used as part of the deployment of a module into the Geronimo server. It performs the following major functions:

  1. Translates annotations into corresponding deployment descriptor elements (so that the actual deployment descriptor in the module can be updated or even created if necessary)

Note(s):

Since:
03-2007

Method Summary
static void insertHandlers(org.apache.geronimo.xbeans.javaee.ServiceRefType serviceRef, HandlerChain annotation, Class clazz)
           
static void insertHandlers(org.apache.geronimo.xbeans.javaee.ServiceRefType serviceRef, URL url)
           
static void processAnnotations(AnnotatedApp annotatedApp, org.apache.xbean.finder.ClassFinder classFinder)
          Updates the deployment descriptor with handler chain info from HandlerChain annotations
 
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
 

Method Detail

processAnnotations

public static void processAnnotations(AnnotatedApp annotatedApp,
                                      org.apache.xbean.finder.ClassFinder classFinder)
                               throws DeploymentException
Updates the deployment descriptor with handler chain info from HandlerChain annotations

Parameters:
annotatedApp - Wrapper around spec dd
classFinder - ClassFinder containing classes of interest
Throws:
DeploymentException - if parsing or validation error

insertHandlers

public static void insertHandlers(org.apache.geronimo.xbeans.javaee.ServiceRefType serviceRef,
                                  HandlerChain annotation,
                                  Class clazz)

insertHandlers

public static void insertHandlers(org.apache.geronimo.xbeans.javaee.ServiceRefType serviceRef,
                                  URL url)
                           throws Exception
Throws:
Exception


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.