org.apache.geronimo.j2ee.deployment.annotation
Interface AnnotatedApp

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

public interface AnnotatedApp

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):

Since:
Geronimo 2.0

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.EjbLocalRefType[] getEjbLocalRefArray()
          XmlBeans methods used for the @EJB, @EJBs annotations
 org.apache.geronimo.xbeans.javaee.EjbRefType[] getEjbRefArray()
           
 org.apache.geronimo.xbeans.javaee.EnvEntryType[] getEnvEntryArray()
          XmlBeans 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()
           
 String toString()
          ApplicationType getter in string format
 

Method Detail

getEjbLocalRefArray

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


addNewEjbLocalRef

org.apache.geronimo.xbeans.javaee.EjbLocalRefType addNewEjbLocalRef()

getEjbRefArray

org.apache.geronimo.xbeans.javaee.EjbRefType[] getEjbRefArray()

addNewEjbRef

org.apache.geronimo.xbeans.javaee.EjbRefType addNewEjbRef()

getEnvEntryArray

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


addNewEnvEntry

org.apache.geronimo.xbeans.javaee.EnvEntryType addNewEnvEntry()

getServiceRefArray

org.apache.geronimo.xbeans.javaee.ServiceRefType[] getServiceRefArray()

addNewServiceRef

org.apache.geronimo.xbeans.javaee.ServiceRefType addNewServiceRef()

getResourceRefArray

org.apache.geronimo.xbeans.javaee.ResourceRefType[] getResourceRefArray()

addNewResourceRef

org.apache.geronimo.xbeans.javaee.ResourceRefType addNewResourceRef()

getMessageDestinationRefArray

org.apache.geronimo.xbeans.javaee.MessageDestinationRefType[] getMessageDestinationRefArray()

addNewMessageDestinationRef

org.apache.geronimo.xbeans.javaee.MessageDestinationRefType addNewMessageDestinationRef()

getResourceEnvRefArray

org.apache.geronimo.xbeans.javaee.ResourceEnvRefType[] getResourceEnvRefArray()

addNewResourceEnvRef

org.apache.geronimo.xbeans.javaee.ResourceEnvRefType addNewResourceEnvRef()

toString

String toString()
ApplicationType getter in string format

Overrides:
toString in class Object
Returns:
String representation of ApplicationType

getAmbiguousEjbRefs

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 this:

    getAmbiguousEjbRefs().add(ejbRef);
 

Returns:
ambiguousRefs list

getPostConstructArray

org.apache.geronimo.xbeans.javaee.LifecycleCallbackType[] getPostConstructArray()

addPostConstruct

org.apache.geronimo.xbeans.javaee.LifecycleCallbackType addPostConstruct()

getPreDestroyArray

org.apache.geronimo.xbeans.javaee.LifecycleCallbackType[] getPreDestroyArray()

addPreDestroy

org.apache.geronimo.xbeans.javaee.LifecycleCallbackType addPreDestroy()

getPersistenceContextRefArray

org.apache.geronimo.xbeans.javaee.PersistenceContextRefType[] getPersistenceContextRefArray()

addNewPersistenceContextRef

org.apache.geronimo.xbeans.javaee.PersistenceContextRefType addNewPersistenceContextRef()

getPersistenceUnitRefArray

org.apache.geronimo.xbeans.javaee.PersistenceUnitRefType[] getPersistenceUnitRefArray()

addNewPersistenceUnitRef

org.apache.geronimo.xbeans.javaee.PersistenceUnitRefType addNewPersistenceUnitRef()

getComponentType

String getComponentType()


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