org.apache.geronimo.j2ee.deployment.annotation
public final class: EJBAnnotationHelper [javadoc |
source]
java.lang.Object
org.apache.geronimo.j2ee.deployment.annotation.AnnotationHelper
org.apache.geronimo.j2ee.deployment.annotation.EJBAnnotationHelper
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:
- 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):
- The user is responsible for invoking change to metadata-complete
- This helper class will validate any changes it makes to the deployment descriptor. An
exception will be thrown if it fails to parse
Remaining ToDo(s):
- version:
$
- Rev: 699352 $ $Date: 2008-09-26 08:00:10 -0700 (Fri, 26 Sep 2008) $
- since:
02-2007
-
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.geronimo.j2ee.deployment.annotation.EJBAnnotationHelper Detail: |
public static boolean annotationsPresent(ClassFinder classFinder) {
if (classFinder.isAnnotationPresent(EJB.class)) return true;
if (classFinder.isAnnotationPresent(EJBs.class)) return true;
return false;
}
Determine if there are any annotations present |
public static void processAnnotations(AnnotatedApp annotatedApp,
ClassFinder classFinder) throws Exception {
if (annotatedApp != null) {
processEJBs(annotatedApp, classFinder);
processEJB(annotatedApp, classFinder);
}
}
|