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

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

public class AnnotatedWebApp
extends Object
implements AnnotatedApp

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

Remaining ToDo(s):

Since:
Geronimo 2.0

Field Summary
protected  List<org.apache.geronimo.xbeans.javaee.EjbRefType> ambiguousEjbRefs
           
 
Constructor Summary
AnnotatedWebApp(org.apache.geronimo.xbeans.javaee.WebAppType webApp)
          WebAppType-qualified constructor
 
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()
          WebAppType methods used for the @EJB, @EJBs annotations
 org.apache.geronimo.xbeans.javaee.EjbRefType[] getEjbRefArray()
           
 org.apache.geronimo.xbeans.javaee.EnvEntryType[] getEnvEntryArray()
          WebAppType 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()
           
 org.apache.geronimo.xbeans.javaee.WebAppType getWebApp()
          webApp getter
 String toString()
          webApp getter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ambiguousEjbRefs

protected List<org.apache.geronimo.xbeans.javaee.EjbRefType> ambiguousEjbRefs
Constructor Detail

AnnotatedWebApp

public AnnotatedWebApp(org.apache.geronimo.xbeans.javaee.WebAppType webApp)
WebAppType-qualified constructor

Parameters:
webApp - WebAppType
Method Detail

getEjbLocalRefArray

public org.apache.geronimo.xbeans.javaee.EjbLocalRefType[] getEjbLocalRefArray()
WebAppType 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()
WebAppType 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

toString

public String toString()
webApp getter

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

getWebApp

public org.apache.geronimo.xbeans.javaee.WebAppType getWebApp()
webApp getter

Returns:
webApp WebAppType

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

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


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