org.apache.geronimo.j2ee.deployment.annotation
Class PersistenceUnitAnnotationHelper
java.lang.Object
org.apache.geronimo.j2ee.deployment.annotation.AnnotationHelper
org.apache.geronimo.j2ee.deployment.annotation.PersistenceUnitAnnotationHelper
public final class PersistenceUnitAnnotationHelper
- extends AnnotationHelper
Static helper class used to encapsulate all the functions related to the translation of
@PersistenceUnit and @PersistenceUnits annotations to deployment
descriptor tags. The PersistenceUnitAnnotationHelper 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):
- Since:
- 04-2007
Method Summary |
static void |
processAnnotations(AnnotatedApp annotatedApp,
org.apache.xbean.finder.ClassFinder classFinder)
Update the deployment descriptor from the PersistenceUnit and PersistenceUnits annotations |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
processAnnotations
public static void processAnnotations(AnnotatedApp annotatedApp,
org.apache.xbean.finder.ClassFinder classFinder)
throws DeploymentException
- Update the deployment descriptor from the PersistenceUnit and PersistenceUnits annotations
- Parameters:
annotatedApp
- Access to the spec ddclassFinder
- Access to the classes of interest
- Throws:
DeploymentException
- if parsing or validation error
Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.