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

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

public final class EJBAnnotationHelper
extends Object

Static helper class used to encapsulate all the functions related to the translation of @EJB and @EJBs annotations to deployment descriptor tags. The EJBAnnotationHelper 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):

Remaining ToDo(s):

Since:
02-2007

Method Summary
static boolean annotationsPresent(org.apache.xbean.finder.ClassFinder classFinder)
          Determine if there are any annotations present
static void processAnnotations(AnnotatedApp annotatedApp, org.apache.xbean.finder.ClassFinder classFinder)
          Process the annotations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

annotationsPresent

public static boolean annotationsPresent(org.apache.xbean.finder.ClassFinder classFinder)
Determine if there are any annotations present

Returns:
true or false

processAnnotations

public static void processAnnotations(AnnotatedApp annotatedApp,
                                      org.apache.xbean.finder.ClassFinder classFinder)
                               throws Exception
Process the annotations

Throws:
Exception - if parsing or validation error


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