Home » geronimo-2.2-source-release » org.apache.geronimo.j2ee.deployment.annotation » [javadoc | source]
org.apache.geronimo.j2ee.deployment.annotation
public interface: AnnotatedApp [javadoc | source]

All Known Implementing Classes:
    MessageDriveBean, AnnotatedWebApp, EntityBean, AnnotatedApplicationClient, AnnotatedEjbJar, SessionBean

Many of the classes generated from the JEE schemas have methods with identical signatures (see examples below). This interface can be used to encapsulate those methods so that the various AnnotationHelper classes can use the same code for multiple application types (e.g. WebAppType, ApplicationClientType, etc).

Example(s):

     public interface ApplicationClientType extends org.apache.xmlbeans.XmlObject {
         org.apache.geronimo.xbeans.javaee.EnvEntryType[] getEnvEntryArray();
         org.apache.geronimo.xbeans.javaee.ResourceRefType[] getResourceRefArray();
     }

public interface WebAppType extends org.apache.xmlbeans.XmlObject { org.apache.geronimo.xbeans.javaee.EnvEntryType[] getEnvEntryArray(); org.apache.geronimo.xbeans.javaee.ResourceRefType[] getResourceRefArray(); }

Remaining ToDo(s):

Method from org.apache.geronimo.j2ee.deployment.annotation.AnnotatedApp Summary:
addNewEjbLocalRef,   addNewEjbRef,   addNewEnvEntry,   addNewMessageDestinationRef,   addNewPersistenceContextRef,   addNewPersistenceUnitRef,   addNewResourceEnvRef,   addNewResourceRef,   addNewServiceRef,   addPostConstruct,   addPreDestroy,   getAmbiguousEjbRefs,   getComponentType,   getEjbLocalRefArray,   getEjbRefArray,   getEnvEntryArray,   getMessageDestinationRefArray,   getPersistenceContextRefArray,   getPersistenceUnitRefArray,   getPostConstructArray,   getPreDestroyArray,   getResourceEnvRefArray,   getResourceRefArray,   getServiceRefArray,   toString
Method from org.apache.geronimo.j2ee.deployment.annotation.AnnotatedApp Detail:
 public EjbLocalRefType addNewEjbLocalRef()
 public EjbRefType addNewEjbRef()
 public EnvEntryType addNewEnvEntry()
 public MessageDestinationRefType addNewMessageDestinationRef()
 public PersistenceContextRefType addNewPersistenceContextRef()
 public PersistenceUnitRefType addNewPersistenceUnitRef()
 public ResourceEnvRefType addNewResourceEnvRef()
 public ResourceRefType addNewResourceRef()
 public ServiceRefType addNewServiceRef()
 public LifecycleCallbackType addPostConstruct()
 public LifecycleCallbackType addPreDestroy()
 public List<EjbRefType> getAmbiguousEjbRefs()
    ambiguousRefs getter

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

       getAmbiguousEjbRefs().add(ejbRef);
    
 public String getComponentType()
 public EjbLocalRefType[] getEjbLocalRefArray()
    XmlBeans methods used for the @EJB, @EJBs annotations
 public EjbRefType[] getEjbRefArray()
 public EnvEntryType[] getEnvEntryArray()
    XmlBeans methods used for the @Resource, @Resources annotations
 public MessageDestinationRefType[] getMessageDestinationRefArray()
 public PersistenceContextRefType[] getPersistenceContextRefArray()
 public PersistenceUnitRefType[] getPersistenceUnitRefArray()
 public LifecycleCallbackType[] getPostConstructArray()
 public LifecycleCallbackType[] getPreDestroyArray()
 public ResourceEnvRefType[] getResourceEnvRefArray()
 public ResourceRefType[] getResourceRefArray()
 public ServiceRefType[] getServiceRefArray()
 public String toString()
    ApplicationType getter in string format