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

java.lang.Object
  extended by org.apache.geronimo.j2ee.deployment.annotation.AnnotatedEjbJar
All Implemented Interfaces:
AnnotatedApp

public class AnnotatedEjbJar
extends Object
implements AnnotatedApp

Wrapper class to encapsulate the EjbJarType class with an interface that the various AnnotationHelpers can use

Remaining ToDo(s):

Since:
Geronimo 2.0

Nested Class Summary
static class AnnotatedEjbJar.EntityBean
           
static class AnnotatedEjbJar.MessageDriveBean
           
static class AnnotatedEjbJar.SessionBean
           
 
Constructor Summary
AnnotatedEjbJar(org.apache.geronimo.xbeans.javaee.EjbJarType ejbJar)
           
 
Method Summary
 org.apache.geronimo.xbeans.javaee.EjbLocalRefType addNewEjbLocalRef()
           
 org.apache.geronimo.xbeans.javaee.EjbRefType addNewEjbRef()
           
 org.apache.geronimo.xbeans.javaee.EnvEntryType addNewEnvEntry()
           
 org.apache.geronimo.xbeans.javaee.MessageDestinationRefType addNewMessageDestinationRef()
           
 org.apache.geronimo.xbeans.javaee.PersistenceContextRefType addNewPersistenceContextRef()
           
 org.apache.geronimo.xbeans.javaee.PersistenceUnitRefType addNewPersistenceUnitRef()
           
 org.apache.geronimo.xbeans.javaee.ResourceEnvRefType addNewResourceEnvRef()
           
 org.apache.geronimo.xbeans.javaee.ResourceRefType addNewResourceRef()
           
 org.apache.geronimo.xbeans.javaee.ServiceRefType addNewServiceRef()
           
 org.apache.geronimo.xbeans.javaee.LifecycleCallbackType addPostConstruct()
           
 org.apache.geronimo.xbeans.javaee.LifecycleCallbackType addPreDestroy()
           
 List<org.apache.geronimo.xbeans.javaee.EjbRefType> getAmbiguousEjbRefs()
          ambiguousRefs getter

There is no corresponding setter method.

 String getComponentType()
           
 org.apache.geronimo.xbeans.javaee.EjbJarType getEjbJar()
           
 org.apache.geronimo.xbeans.javaee.EjbLocalRefType[] getEjbLocalRefArray()
          EjbJarType methods used for the @EJB, @EJBs annotations
 org.apache.geronimo.xbeans.javaee.EjbRefType[] getEjbRefArray()
           
 org.apache.geronimo.xbeans.javaee.EnvEntryType[] getEnvEntryArray()
          EjbJarType methods used for the @Resource, @Resources annotations
 org.apache.geronimo.xbeans.javaee.MessageDestinationRefType[] getMessageDestinationRefArray()
           
 org.apache.geronimo.xbeans.javaee.PersistenceContextRefType[] getPersistenceContextRefArray()
           
 org.apache.geronimo.xbeans.javaee.PersistenceUnitRefType[] getPersistenceUnitRefArray()
           
 org.apache.geronimo.xbeans.javaee.LifecycleCallbackType[] getPostConstructArray()
           
 org.apache.geronimo.xbeans.javaee.LifecycleCallbackType[] getPreDestroyArray()
           
 org.apache.geronimo.xbeans.javaee.ResourceEnvRefType[] getResourceEnvRefArray()
           
 org.apache.geronimo.xbeans.javaee.ResourceRefType[] getResourceRefArray()
           
 org.apache.geronimo.xbeans.javaee.ServiceRefType[] getServiceRefArray()
           
 void setBean(org.apache.xmlbeans.XmlObject bean)
           
 String toString()
          ejbJar getter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotatedEjbJar

public AnnotatedEjbJar(org.apache.geronimo.xbeans.javaee.EjbJarType ejbJar)
Method Detail

setBean

public void setBean(org.apache.xmlbeans.XmlObject bean)
             throws DeploymentException
Throws:
DeploymentException

getEjbLocalRefArray

public org.apache.geronimo.xbeans.javaee.EjbLocalRefType[] getEjbLocalRefArray()
EjbJarType methods used for the @EJB, @EJBs annotations

Specified by:
getEjbLocalRefArray in interface AnnotatedApp

addNewEjbLocalRef

public org.apache.geronimo.xbeans.javaee.EjbLocalRefType addNewEjbLocalRef()
Specified by:
addNewEjbLocalRef in interface AnnotatedApp

getEjbRefArray

public org.apache.geronimo.xbeans.javaee.EjbRefType[] getEjbRefArray()
Specified by:
getEjbRefArray in interface AnnotatedApp

addNewEjbRef

public org.apache.geronimo.xbeans.javaee.EjbRefType addNewEjbRef()
Specified by:
addNewEjbRef in interface AnnotatedApp

getEnvEntryArray

public org.apache.geronimo.xbeans.javaee.EnvEntryType[] getEnvEntryArray()
EjbJarType methods used for the @Resource, @Resources annotations

Specified by:
getEnvEntryArray in interface AnnotatedApp

addNewEnvEntry

public org.apache.geronimo.xbeans.javaee.EnvEntryType addNewEnvEntry()
Specified by:
addNewEnvEntry in interface AnnotatedApp

getServiceRefArray

public org.apache.geronimo.xbeans.javaee.ServiceRefType[] getServiceRefArray()
Specified by:
getServiceRefArray in interface AnnotatedApp

addNewServiceRef

public org.apache.geronimo.xbeans.javaee.ServiceRefType addNewServiceRef()
Specified by:
addNewServiceRef in interface AnnotatedApp

getResourceRefArray

public org.apache.geronimo.xbeans.javaee.ResourceRefType[] getResourceRefArray()
Specified by:
getResourceRefArray in interface AnnotatedApp

addNewResourceRef

public org.apache.geronimo.xbeans.javaee.ResourceRefType addNewResourceRef()
Specified by:
addNewResourceRef in interface AnnotatedApp

getMessageDestinationRefArray

public org.apache.geronimo.xbeans.javaee.MessageDestinationRefType[] getMessageDestinationRefArray()
Specified by:
getMessageDestinationRefArray in interface AnnotatedApp

addNewMessageDestinationRef

public org.apache.geronimo.xbeans.javaee.MessageDestinationRefType addNewMessageDestinationRef()
Specified by:
addNewMessageDestinationRef in interface AnnotatedApp

getResourceEnvRefArray

public org.apache.geronimo.xbeans.javaee.ResourceEnvRefType[] getResourceEnvRefArray()
Specified by:
getResourceEnvRefArray in interface AnnotatedApp

addNewResourceEnvRef

public org.apache.geronimo.xbeans.javaee.ResourceEnvRefType addNewResourceEnvRef()
Specified by:
addNewResourceEnvRef in interface AnnotatedApp

getPostConstructArray

public org.apache.geronimo.xbeans.javaee.LifecycleCallbackType[] getPostConstructArray()
Specified by:
getPostConstructArray in interface AnnotatedApp

addPostConstruct

public org.apache.geronimo.xbeans.javaee.LifecycleCallbackType addPostConstruct()
Specified by:
addPostConstruct in interface AnnotatedApp

getPreDestroyArray

public org.apache.geronimo.xbeans.javaee.LifecycleCallbackType[] getPreDestroyArray()
Specified by:
getPreDestroyArray in interface AnnotatedApp

addPreDestroy

public org.apache.geronimo.xbeans.javaee.LifecycleCallbackType addPreDestroy()
Specified by:
addPreDestroy in interface AnnotatedApp

getPersistenceContextRefArray

public org.apache.geronimo.xbeans.javaee.PersistenceContextRefType[] getPersistenceContextRefArray()
Specified by:
getPersistenceContextRefArray in interface AnnotatedApp

addNewPersistenceContextRef

public org.apache.geronimo.xbeans.javaee.PersistenceContextRefType addNewPersistenceContextRef()
Specified by:
addNewPersistenceContextRef in interface AnnotatedApp

getPersistenceUnitRefArray

public org.apache.geronimo.xbeans.javaee.PersistenceUnitRefType[] getPersistenceUnitRefArray()
Specified by:
getPersistenceUnitRefArray in interface AnnotatedApp

addNewPersistenceUnitRef

public org.apache.geronimo.xbeans.javaee.PersistenceUnitRefType addNewPersistenceUnitRef()
Specified by:
addNewPersistenceUnitRef in interface AnnotatedApp

getComponentType

public String getComponentType()
Specified by:
getComponentType in interface AnnotatedApp

toString

public String toString()
ejbJar getter

Specified by:
toString in interface AnnotatedApp
Overrides:
toString in class Object
Returns:
String representation of ejbJar

getEjbJar

public org.apache.geronimo.xbeans.javaee.EjbJarType getEjbJar()

getAmbiguousEjbRefs

public List<org.apache.geronimo.xbeans.javaee.EjbRefType> getAmbiguousEjbRefs()
ambiguousRefs getter

There is no corresponding setter method. To add a new item to the list do:

    getAmbiguousEjbRefs().add(ejbRef);
 

Specified by:
getAmbiguousEjbRefs in interface AnnotatedApp
Returns:
ambiguousRefs list


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