|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
com.sun.enterprise.deployment.DynamicAttributesDescriptor
com.sun.enterprise.deployment.Descriptor
com.sun.enterprise.deployment.RootDeploymentDescriptor
com.sun.enterprise.deployment.BundleDescriptor
com.sun.enterprise.deployment.Application
public class Application
Objects of this type encapsulate the data and behaviour of a J2EE application.
| Field Summary |
|---|
| Fields inherited from class com.sun.enterprise.deployment.RootDeploymentDescriptor |
|---|
classLoader, extensions, moduleDescriptor, moduleID |
| Fields inherited from class com.sun.enterprise.deployment.Descriptor |
|---|
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED |
| Constructor Summary | |
|---|---|
Application(org.jvnet.hk2.component.Habitat habitat)
|
|
| Method Summary | ||
|---|---|---|
void |
addApplication(Application application)
Add all the deployment information about the given application to me. |
|
void |
addApplicationParam(ApplicationParameter appParam)
Adds a new context parameter to my list. |
|
void |
addAppRole(SecurityRoleDescriptor descriptor)
|
|
void |
addBundleDescriptor(BundleDescriptor bundleDescriptor)
Add a web bundle descriptor to this application. |
|
void |
addDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
Adds the specified data-source-definition to the receiver. |
|
void |
addEjbReferenceDescriptor(EjbReference ejbReference)
Adds a reference to another ejb to me. |
|
void |
addEntityManagerFactory(java.lang.String unitName,
java.lang.String persistenceRootUri,
javax.persistence.EntityManagerFactory emf)
Set the physical entity manager factory for a persistence unit within this application. |
|
void |
addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)
|
|
void |
addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)
|
|
void |
addEnvironmentProperty(EnvironmentProperty environmentProperty)
Adds the specified environment property to the receiver. |
|
void |
addJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestReference)
Adds the specified JMS destination reference to the receiver. |
|
void |
addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor messageDestRef)
Adds the specified message destination reference to the receiver. |
|
void |
addModule(ModuleDescriptor<BundleDescriptor> descriptor)
|
|
void |
addPostConstructDescriptor(LifecycleCallbackDescriptor postConstructDesc)
Adds the specified post-construct descriptor to the receiver. |
|
void |
addPreDestroyDescriptor(LifecycleCallbackDescriptor preDestroyDesc)
Adds the specified pre-destroy descriptor to the receiver. |
|
void |
addResourceAdapter(java.lang.String raName)
add a resource-adapter to referred resource-adapters list |
|
void |
addResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Adds a resource reference to me. |
|
void |
addRole(Role role)
Adds a new abstract role |
|
void |
addSecurityRoleMapping(SecurityRoleMapping roleMapping)
|
|
void |
addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
Adds the specified service reference to the receiver. |
|
void |
addWLModule(WLModuleDescriptor wlModule)
Adds a new context parameter to my list. |
|
void |
addWLRoleAssignments(WLSecurityRoleAssignment wlRoleAssignment)
|
|
boolean |
containsCMPEntity()
|
|
static Application |
createApplication(org.jvnet.hk2.component.Habitat habitat,
java.lang.String name,
ModuleDescriptor<BundleDescriptor> newModule)
Creates a new application to hold a standalone module |
|
ApplicationClientDescriptor |
getApplicationClientByName(java.lang.String name)
Obtain the application client in this application of the given display name. |
|
ApplicationClientDescriptor |
getApplicationClientByUri(java.lang.String name)
Obtain an application client descriptor in this application of the given URI. |
|
java.util.Set<ApplicationClientDescriptor> |
getApplicationClientDescriptors()
Return the Set of app client deploymenbt objects. |
|
java.util.Set<ApplicationParameter> |
getApplicationParams()
|
|
java.lang.String |
getAppName()
Returns the value of the app-name element in the application.xml if it's defined. |
|
java.util.Set<Role> |
getAppRoles()
Return the set of com.sun.enterprise.deployment.Role objects I have (the ones defined in application xml). |
|
java.util.Set |
getArchivableDescriptors()
Return all my subcomponents that have a file format (EJB, WAR and AppCLient JAR). |
|
java.lang.String |
getArchiveName()
Returns the value of the archive-name element in the sun-application.xml When the app-name is not present in application.xml and archive-name is present in sun-application.xml, the value of archive-name minus file extension will be used as the default name of the app-name. |
|
java.util.Set<BundleDescriptor> |
getBundleDescriptors()
Obtain a set of all bundle descriptors, regardless of type |
|
|
getBundleDescriptors(java.lang.Class<T> type)
Obtain a full set of bundle descriptors for a particular type |
|
java.lang.ClassLoader |
getClassLoader()
|
|
EjbCMPEntityDescriptor |
getCMPDescriptorFor(java.lang.String className)
Return the EjbCMPEntityDescriptor for a bean for the given classname. |
|
java.lang.String |
getCompatibility()
|
|
java.util.Set<DataSourceDefinitionDescriptor> |
getDataSourceDefinitionDescriptors()
Return a set of data-source-definition descriptors. |
|
java.lang.String |
getDefaultSpecVersion()
|
|
EjbBundleDescriptor |
getEjbBundleByName(java.lang.String name)
Obtain the EJB-JAR in this application of the given name. |
|
EjbBundleDescriptor |
getEjbBundleByUri(java.lang.String name)
Get EJB-JAR of the given URI (filename within EAR) |
|
java.util.Set<EjbBundleDescriptor> |
getEjbBundleDescriptors()
Obtain the full set of all the Ejb JAR deployment information in this application. |
|
EjbDescriptor |
getEjbByName(java.lang.String ejbName)
Obtain the EJB in this application of the given display name. |
|
int |
getEjbComponentCount()
The number of EJB JARs in this application. |
|
java.util.Vector |
getEjbDescriptors()
Return the Vector of ejb deployment objects. |
|
EjbReference |
getEjbReference(java.lang.String name)
Looks up an ejb reference with the given name. |
|
EjbReference |
getEjbReferenceByName(java.lang.String name)
Return a reference to another ejb by the same name or throw an IllegalArgumentException. |
|
java.util.Set<EjbReference> |
getEjbReferenceDescriptors()
Returns the generated XML directory feturn the set of ejb references this ejb declares. |
|
java.util.Set<javax.persistence.EntityManagerFactory> |
getEntityManagerFactories()
Returns the set of physical entity manager factories associated with persistence units in this application. |
|
javax.persistence.EntityManagerFactory |
getEntityManagerFactory(java.lang.String unitName,
BundleDescriptor declaringModule)
Retrieve the physical entity manager factory associated with the unitName of an application-level persistence unit. |
|
EntityManagerFactoryReferenceDescriptor |
getEntityManagerFactoryReferenceByName(java.lang.String name)
Return the entity manager factory reference descriptor corresponding to the given name. |
|
java.util.Set<EntityManagerFactoryReferenceDescriptor> |
getEntityManagerFactoryReferenceDescriptors()
Return a set of entity manager factory reference descriptors. |
|
EntityManagerReferenceDescriptor |
getEntityManagerReferenceByName(java.lang.String name)
Return the entity manager factory reference descriptor corresponding to the given name. |
|
java.util.Set<EntityManagerReferenceDescriptor> |
getEntityManagerReferenceDescriptors()
Return a set of entity manager reference descriptors. |
|
java.util.Set<EnvironmentProperty> |
getEnvironmentProperties()
Return a copy of the structure holding the environment properties. |
|
EnvironmentProperty |
getEnvironmentPropertyByName(java.lang.String name)
Returns the environment property object searching on the supplied key. |
|
java.lang.String |
getGeneratedXMLDirectory()
|
|
java.util.List<InjectionCapable> |
getInjectableResourcesByClass(java.lang.String className)
|
|
InjectionInfo |
getInjectionInfoByClass(java.lang.Class clazz)
|
|
JmsDestinationReferenceDescriptor |
getJmsDestinationReferenceByName(java.lang.String name)
Return a reference to another ejb by the same name or throw an IllegalArgumentException. |
|
java.util.Set<JmsDestinationReferenceDescriptor> |
getJmsDestinationReferenceDescriptors()
Return the set of JMS destination references this ejb declares. |
|
java.util.Set<JndiNameEnvironment> |
getJndiNameEnvironments()
Obtain the full set of all the subcomponents of this application that use a JNDI name environment.. |
|
boolean |
getKeepState()
|
|
boolean |
getKeepStateResolved()
Returns the resolved keepstate value. |
|
java.lang.String |
getLibraryDirectory()
Returns an "intelligent" value for the library directory setting, meaning the current value if it has been set to a non-null, non-empty value; the default value if the value has never been set, and null if the value has been set to empty. |
|
java.lang.String |
getLibraryDirectoryRawValue()
|
|
MessageDestinationReferenceDescriptor |
getMessageDestinationReferenceByName(java.lang.String name)
Looks up an message destination reference with the given name. |
|
java.util.Set<MessageDestinationReferenceDescriptor> |
getMessageDestinationReferenceDescriptors()
Return a set of message destination reference descriptors. |
|
|
getModuleByTypeAndUri(java.lang.Class<T> type,
java.lang.String uri)
|
|
BundleDescriptor |
getModuleByUri(java.lang.String uri)
Lookup module by uri. |
|
ModuleDescriptor<BundleDescriptor> |
getModuleDescriptorByUri(java.lang.String uri)
Lookup module by uri. |
|
java.util.Collection<ModuleDescriptor<BundleDescriptor>> |
getModuleDescriptorsByType(XModuleType type)
Lookup module by uri. |
|
java.lang.String |
getModuleID()
|
|
java.util.Set<ModuleDescriptor<BundleDescriptor>> |
getModules()
Obtain a full set of module descriptors |
|
XModuleType |
getModuleType()
|
|
boolean |
getPassByReference()
Gets the value of pass-by-reference property for this application Checks to see if the pass-by-reference property is defined. |
|
LifecycleCallbackDescriptor |
getPostConstructDescriptorByClass(java.lang.String className)
Return the post-construct descriptor corresponding to the given name. |
|
java.util.Set<LifecycleCallbackDescriptor> |
getPostConstructDescriptors()
Return a set of post-construct descriptors. |
|
LifecycleCallbackDescriptor |
getPreDestroyDescriptorByClass(java.lang.String className)
Return the pre-destroy descriptor corresponding to the given name. |
|
java.util.Set<LifecycleCallbackDescriptor> |
getPreDestroyDescriptors()
Return a set of pre-destroy descriptors. |
|
int |
getRarComponentCount()
|
|
ConnectorDescriptor |
getRarDescriptorByUri(java.lang.String name)
Obtain the RAR in this application of the given URI. |
|
java.util.Set<ConnectorDescriptor> |
getRarDescriptors()
Obtain the full set of all the Ejb JAR deployment information in this application. |
|
java.lang.String |
getRealm()
|
|
java.lang.String |
getRegistrationName()
Returns the registration name of this application. |
|
BundleDescriptor |
getRelativeBundle(BundleDescriptor origin,
java.lang.String relativeTargetUri)
Get a target bundle descriptor based on an input bundle descriptor and a relative uri from the perspective of the input bundle descriptor. |
|
java.lang.String |
getRelativeUri(BundleDescriptor origin,
BundleDescriptor target)
Return the relative uri between two modules, from the perspective of the first bundle. |
|
java.util.Set<java.lang.String> |
getResourceAdapters()
get the list of resource-adapters referred by the application |
|
java.util.List<Resource> |
getResourceList()
|
|
ResourceReferenceDescriptor |
getResourceReferenceByName(java.lang.String name)
Return the resource object corresponding to the supplied name or throw an illegal argument exception. |
|
java.util.Set<ResourceReferenceDescriptor> |
getResourceReferenceDescriptors()
Return the set of resource references this ejb declares. |
|
SecurityRoleMapper |
getRoleMapper()
Return my mapping of rolename to users and groups on a particular server. |
|
java.util.Set<Role> |
getRoles()
Return the set of roles used in this application. |
|
java.util.List<SecurityRoleMapping> |
getSecurityRoleMappings()
|
|
ServiceReferenceDescriptor |
getServiceReferenceByName(java.lang.String name)
Looks up an service reference with the given name. |
|
java.util.Set<ServiceReferenceDescriptor> |
getServiceReferenceDescriptors()
Return a set of service reference descriptors. |
|
EjbDescriptor[] |
getSortedEjbDescriptors()
Returns all the ejb descriptor in this application in ordered form. |
|
BundleDescriptor |
getStandaloneBundleDescriptor()
if this application object is virtual, return the standalone bundle descriptor it is wrapping otherwise return null |
|
java.lang.String |
getTargetUri(BundleDescriptor origin,
java.lang.String relativeTargetUri)
Get the uri of a target based on a source module and a a relative uri from the perspective of that source module. |
|
long |
getUniqueId()
Returns the unique id used for this application. |
|
WebBundleDescriptor |
getWebBundleDescriptorByName(java.lang.String name)
Obtain the WAR in this application of the given display name. |
|
WebBundleDescriptor |
getWebBundleDescriptorByUri(java.lang.String name)
Get WAR of a given URI (filename within EAR) |
|
java.util.Set<WebBundleDescriptor> |
getWebBundleDescriptors()
Obtain the full set of all the WARs in this application. |
|
int |
getWebComponentCount()
The number of Web Components in this application. |
|
java.util.Set<WebService> |
getWebServiceDescriptors()
Return a set of all com.sun.enterprise.deployment.WebService descriptors in the application. |
|
java.util.Set<WLModuleDescriptor> |
getWLModules()
|
|
java.util.List<WLSecurityRoleAssignment> |
getWlRoleAssignments()
|
|
boolean |
hasEjbByName(java.lang.String ejbName)
Return whether the application contains the given ejb by name.. |
|
boolean |
hasRuntimeInformation()
Return true if I have information to do with deployment on a particular operational environment. |
|
boolean |
isApplication()
|
|
boolean |
isDirty()
A flag to indicate that my data has changed since the last save. |
|
boolean |
isEmpty()
Return true if this root deployment descriptor does not describe anything |
|
boolean |
isInitializeInOrder()
|
|
boolean |
isLoadedFromApplicationXml()
|
|
boolean |
isPassByReferenceDefined()
|
|
boolean |
isUniqueIdSet()
|
|
boolean |
isVirtual()
Returns the virtual status of this application. |
|
void |
print(java.lang.StringBuffer toStringBuffer)
A formatted String representing my state. |
|
void |
removeBundleDescriptor(BundleDescriptor bundleDescriptor)
Remove a web bundle descriptor from this application. |
|
void |
removeDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
Removes the specified data-source-definition from the receiver. |
|
void |
removeEjbReferenceDescriptor(EjbReference ejbReference)
Removes the specificed ejb reference from the receiver. |
|
void |
removeEnvironmentProperty(EnvironmentProperty environmentProperty)
Removes the given environment property from me. |
|
void |
removeJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestReference)
Removes the specified JMS destination reference from the receiver. |
|
void |
removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
Removes the specified message destination reference from the receiver. |
|
void |
removeModule(ModuleDescriptor<BundleDescriptor> descriptor)
|
|
void |
removeResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
Removes the given resource reference from me. |
|
void |
removeRole(Role role)
Removes the given role. |
|
void |
removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
Removes the specified service reference from the receiver. |
|
void |
setAppName(java.lang.String appName)
Sets the EE app name |
|
void |
setArchiveName(java.lang.String archiveName)
Sets the archive name using the archive-name element defined in sun-application.xml |
|
void |
setCompatibility(java.lang.String compatValue)
|
|
void |
setGeneratedXMLDirectory(java.lang.String xmlDir)
|
|
void |
setInitializeInOrder(boolean initializeInOrder)
Sets the initializeInOrder flag |
|
void |
setKeepStateResolved(java.lang.String keepStateResolved)
Sets the resolved keepstate value. |
|
void |
setLibraryDirectory(java.lang.String value)
|
|
void |
setLoadedFromApplicationXml(boolean bool)
This method records how this Application object is constructed. |
|
void |
setName(java.lang.String name)
Reset the display name of this application. |
|
void |
setPassByReference(boolean passByReference)
Sets the pass-by-reference property for this application. |
|
void |
setRealm(java.lang.String realm)
Sets the realm for this application |
|
void |
setRegistrationName(java.lang.String appId)
Sets the registration name for this application. |
|
void |
setResourceList(java.util.List<Resource> rList)
|
|
void |
setRoleMapper(SecurityRoleMapper roleMapper)
Sets the mapping of rolename to users and groups on a particular server. |
|
void |
setUniqueId(long id)
Sets the unique id for this application. |
|
void |
setVirtual(boolean virtual)
Sets the virtual status of this application. |
|
void |
visit(ApplicationVisitor aVisitor)
visit the descriptor and all sub descriptors with a DOL visitor implementation |
|
void |
visit(DescriptorVisitor aVisitor)
visit the descriptor and all sub descriptors with a DOL visitor implementation |
|
| Methods inherited from class com.sun.enterprise.deployment.RootDeploymentDescriptor |
|---|
addExtensionDescriptor, getDisplayName, getExtensionsDescriptors, getExtensionsDescriptors, getExtensionsDescriptors, getMainDescriptor, getModuleDescriptor, getName, getSchemaLocation, getSpecVersion, isDDWithNoAnnotationAllowed, isExtensionDescriptor, isFullAttribute, isFullFlag, setClassLoader, setDisplayName, setFullAttribute, setFullFlag, setModuleDescriptor, setModuleID, setSchemaLocation, setSpecVersion |
| Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor |
|---|
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Application(org.jvnet.hk2.component.Habitat habitat)
| Method Detail |
|---|
public java.lang.String getDefaultSpecVersion()
getDefaultSpecVersion in class RootDeploymentDescriptorpublic boolean isEmpty()
RootDeploymentDescriptor
isEmpty in class RootDeploymentDescriptor
public static Application createApplication(org.jvnet.hk2.component.Habitat habitat,
java.lang.String name,
ModuleDescriptor<BundleDescriptor> newModule)
name - the application namenewModule - the standalone module descriptor
public java.util.Set<EjbReference> getEjbReferenceDescriptors()
getEjbReferenceDescriptors in interface JndiNameEnvironmentgetEjbReferenceDescriptors in interface EjbReferenceContainerpublic void addEjbReferenceDescriptor(EjbReference ejbReference)
addEjbReferenceDescriptor in interface EjbReferenceContaineraddEjbReferenceDescriptor in interface WritableJndiNameEnvironmentejbReference - the EjbReferenceDescriptor to add.public void removeEjbReferenceDescriptor(EjbReference ejbReference)
WritableJndiNameEnvironment
removeEjbReferenceDescriptor in interface WritableJndiNameEnvironmentejbReference - the EjbReferenceDescriptor to remove.public EjbReference getEjbReferenceByName(java.lang.String name)
public EjbReference getEjbReference(java.lang.String name)
EjbReferenceContainer
getEjbReference in interface EjbReferenceContainerpublic java.util.Set<ServiceReferenceDescriptor> getServiceReferenceDescriptors()
JndiNameEnvironment
getServiceReferenceDescriptors in interface JndiNameEnvironmentgetServiceReferenceDescriptors in interface ServiceReferenceContainergetServiceReferenceDescriptors in class BundleDescriptorpublic void addServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
WritableJndiNameEnvironment
addServiceReferenceDescriptor in interface ServiceReferenceContaineraddServiceReferenceDescriptor in interface WritableJndiNameEnvironmentpublic void removeServiceReferenceDescriptor(ServiceReferenceDescriptor serviceRef)
WritableJndiNameEnvironment
removeServiceReferenceDescriptor in interface ServiceReferenceContainerremoveServiceReferenceDescriptor in interface WritableJndiNameEnvironmentpublic ServiceReferenceDescriptor getServiceReferenceByName(java.lang.String name)
getServiceReferenceByName in interface JndiNameEnvironmentgetServiceReferenceByName in interface ServiceReferenceContainerpublic java.util.Set<MessageDestinationReferenceDescriptor> getMessageDestinationReferenceDescriptors()
JndiNameEnvironment
getMessageDestinationReferenceDescriptors in interface JndiNameEnvironmentgetMessageDestinationReferenceDescriptors in interface MessageDestinationReferenceContainerpublic void addMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor messageDestRef)
WritableJndiNameEnvironment
addMessageDestinationReferenceDescriptor in interface MessageDestinationReferenceContaineraddMessageDestinationReferenceDescriptor in interface WritableJndiNameEnvironmentpublic void removeMessageDestinationReferenceDescriptor(MessageDestinationReferenceDescriptor msgDestRef)
WritableJndiNameEnvironment
removeMessageDestinationReferenceDescriptor in interface MessageDestinationReferenceContainerremoveMessageDestinationReferenceDescriptor in interface WritableJndiNameEnvironmentpublic MessageDestinationReferenceDescriptor getMessageDestinationReferenceByName(java.lang.String name)
getMessageDestinationReferenceByName in interface JndiNameEnvironmentgetMessageDestinationReferenceByName in interface MessageDestinationReferenceContainerpublic java.util.Set<JmsDestinationReferenceDescriptor> getJmsDestinationReferenceDescriptors()
getJmsDestinationReferenceDescriptors in interface JndiNameEnvironmentgetJmsDestinationReferenceDescriptors in interface ResourceEnvReferenceContainerpublic void addJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestReference)
WritableJndiNameEnvironment
addJmsDestinationReferenceDescriptor in interface ResourceEnvReferenceContaineraddJmsDestinationReferenceDescriptor in interface WritableJndiNameEnvironmentpublic void removeJmsDestinationReferenceDescriptor(JmsDestinationReferenceDescriptor jmsDestReference)
WritableJndiNameEnvironment
removeJmsDestinationReferenceDescriptor in interface WritableJndiNameEnvironmentpublic JmsDestinationReferenceDescriptor getJmsDestinationReferenceByName(java.lang.String name)
getJmsDestinationReferenceByName in interface JndiNameEnvironmentgetJmsDestinationReferenceByName in interface ResourceEnvReferenceContainerpublic java.util.Set<ResourceReferenceDescriptor> getResourceReferenceDescriptors()
getResourceReferenceDescriptors in interface JndiNameEnvironmentgetResourceReferenceDescriptors in interface ResourceReferenceContainerpublic void addResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
addResourceReferenceDescriptor in interface ResourceReferenceContaineraddResourceReferenceDescriptor in interface WritableJndiNameEnvironmentresourceReference - the ResourceReferenceDescriptor to add.public void removeResourceReferenceDescriptor(ResourceReferenceDescriptor resourceReference)
removeResourceReferenceDescriptor in interface WritableJndiNameEnvironmentresourceReference - the ResourceReferenceDescriptor to remove.public ResourceReferenceDescriptor getResourceReferenceByName(java.lang.String name)
getResourceReferenceByName in interface ResourceReferenceContainerpublic EnvironmentProperty getEnvironmentPropertyByName(java.lang.String name)
getEnvironmentPropertyByName in interface JndiNameEnvironmentpublic java.util.Set<EnvironmentProperty> getEnvironmentProperties()
getEnvironmentProperties in interface JndiNameEnvironmentpublic void addEnvironmentProperty(EnvironmentProperty environmentProperty)
WritableJndiNameEnvironment
addEnvironmentProperty in interface WritableJndiNameEnvironmentenvironmentProperty - the EnvironmentProperty to add.public void removeEnvironmentProperty(EnvironmentProperty environmentProperty)
removeEnvironmentProperty in interface WritableJndiNameEnvironmentenvironmentProperty - the EnvironmentProperty to remove.public java.util.Set<EntityManagerFactoryReferenceDescriptor> getEntityManagerFactoryReferenceDescriptors()
JndiNameEnvironment
getEntityManagerFactoryReferenceDescriptors in interface JndiNameEnvironmentpublic EntityManagerFactoryReferenceDescriptor getEntityManagerFactoryReferenceByName(java.lang.String name)
getEntityManagerFactoryReferenceByName in interface JndiNameEnvironmentpublic void addEntityManagerFactoryReferenceDescriptor(EntityManagerFactoryReferenceDescriptor reference)
addEntityManagerFactoryReferenceDescriptor in interface WritableJndiNameEnvironmentpublic java.util.Set<EntityManagerReferenceDescriptor> getEntityManagerReferenceDescriptors()
JndiNameEnvironment
getEntityManagerReferenceDescriptors in interface JndiNameEnvironmentpublic EntityManagerReferenceDescriptor getEntityManagerReferenceByName(java.lang.String name)
getEntityManagerReferenceByName in interface JndiNameEnvironmentpublic void addEntityManagerReferenceDescriptor(EntityManagerReferenceDescriptor reference)
addEntityManagerReferenceDescriptor in interface WritableJndiNameEnvironmentpublic java.util.Set<DataSourceDefinitionDescriptor> getDataSourceDefinitionDescriptors()
JndiNameEnvironment
getDataSourceDefinitionDescriptors in interface JndiNameEnvironmentpublic void addDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
WritableJndiNameEnvironment
addDataSourceDefinitionDescriptor in interface WritableJndiNameEnvironmentreference - DataSourceDefinitionDescriptor to add.public void removeDataSourceDefinitionDescriptor(DataSourceDefinitionDescriptor reference)
WritableJndiNameEnvironment
removeDataSourceDefinitionDescriptor in interface WritableJndiNameEnvironmentreference - DataSourceDefinitionDescriptor to remove.public java.util.Set<LifecycleCallbackDescriptor> getPostConstructDescriptors()
JndiNameEnvironment
getPostConstructDescriptors in interface JndiNameEnvironmentpublic void addPostConstructDescriptor(LifecycleCallbackDescriptor postConstructDesc)
WritableJndiNameEnvironment
addPostConstructDescriptor in interface WritableJndiNameEnvironmentpublic LifecycleCallbackDescriptor getPostConstructDescriptorByClass(java.lang.String className)
JndiNameEnvironment
getPostConstructDescriptorByClass in interface JndiNameEnvironmentpublic java.util.Set<LifecycleCallbackDescriptor> getPreDestroyDescriptors()
JndiNameEnvironment
getPreDestroyDescriptors in interface JndiNameEnvironmentpublic void addPreDestroyDescriptor(LifecycleCallbackDescriptor preDestroyDesc)
WritableJndiNameEnvironment
addPreDestroyDescriptor in interface WritableJndiNameEnvironmentpublic LifecycleCallbackDescriptor getPreDestroyDescriptorByClass(java.lang.String className)
JndiNameEnvironment
getPreDestroyDescriptorByClass in interface JndiNameEnvironmentpublic java.util.List<InjectionCapable> getInjectableResourcesByClass(java.lang.String className)
getInjectableResourcesByClass in interface JndiNameEnvironmentpublic InjectionInfo getInjectionInfoByClass(java.lang.Class clazz)
getInjectionInfoByClass in interface JndiNameEnvironmentpublic void setGeneratedXMLDirectory(java.lang.String xmlDir)
public java.lang.String getGeneratedXMLDirectory()
public void setRegistrationName(java.lang.String appId)
appId - the registration name used for this applicationpublic java.lang.String getRegistrationName()
public java.lang.String getAppName()
public void setAppName(java.lang.String appName)
appName - the EE app name of this applicationpublic java.lang.String getArchiveName()
public void setArchiveName(java.lang.String archiveName)
archiveName - archiveName to calculate default EE6 app-namepublic java.lang.String getCompatibility()
getCompatibility in class BundleDescriptorpublic void setCompatibility(java.lang.String compatValue)
setCompatibility in class BundleDescriptorpublic boolean isInitializeInOrder()
public void setInitializeInOrder(boolean initializeInOrder)
initializeInOrder -
public void addEntityManagerFactory(java.lang.String unitName,
java.lang.String persistenceRootUri,
javax.persistence.EntityManagerFactory emf)
unitName: - Name of the persistence-unitpersistenceRootUri: - uri of the root of the persistence.xml
(excluding META-INF) in which the persistence unit was defined.
This uri is relative to the top of the .ear.emf: - an entity manager factory.
public javax.persistence.EntityManagerFactory getEntityManagerFactory(java.lang.String unitName,
BundleDescriptor declaringModule)
public java.util.Set<javax.persistence.EntityManagerFactory> getEntityManagerFactories()
getEntityManagerFactories in class BundleDescriptorpublic java.util.Set<Role> getRoles()
getRoles in interface RolesgetRoles in class BundleDescriptorpublic java.util.Set<Role> getAppRoles()
public void addAppRole(SecurityRoleDescriptor descriptor)
public void addRole(Role role)
addRole in interface RolesaddRole in class BundleDescriptorpublic void removeRole(Role role)
removeRole in interface RolesremoveRole in class BundleDescriptorpublic void setName(java.lang.String name)
setName in class RootDeploymentDescriptorname - the display name of the application.public void setLibraryDirectory(java.lang.String value)
public java.lang.String getLibraryDirectory()
public java.lang.String getLibraryDirectoryRawValue()
public int getWebComponentCount()
public void removeModule(ModuleDescriptor<BundleDescriptor> descriptor)
public void addModule(ModuleDescriptor<BundleDescriptor> descriptor)
public java.util.Set<ModuleDescriptor<BundleDescriptor>> getModules()
public int getEjbComponentCount()
public int getRarComponentCount()
public EjbBundleDescriptor getEjbBundleByName(java.lang.String name)
public java.lang.String getTargetUri(BundleDescriptor origin,
java.lang.String relativeTargetUri)
origin - bundle descriptor within this applicationrelativeTargetUri - relative uri from the given bundle descriptor
public BundleDescriptor getRelativeBundle(BundleDescriptor origin,
java.lang.String relativeTargetUri)
origin - bundle descriptor within this applicationrelativeTargetUri - relative uri from the given bundle descriptor
to another bundle within the application.
public java.lang.String getRelativeUri(BundleDescriptor origin,
BundleDescriptor target)
public EjbBundleDescriptor getEjbBundleByUri(java.lang.String name)
public ModuleDescriptor<BundleDescriptor> getModuleDescriptorByUri(java.lang.String uri)
uri - the module path in the application archive
public java.util.Collection<ModuleDescriptor<BundleDescriptor>> getModuleDescriptorsByType(XModuleType type)
uri - the module path in the application archive
public BundleDescriptor getModuleByUri(java.lang.String uri)
uri - the module path in the application archive
public <T extends BundleDescriptor> T getModuleByTypeAndUri(java.lang.Class<T> type,
java.lang.String uri)
type - the module typeuri - the module path in the application archive
public EjbDescriptor getEjbByName(java.lang.String ejbName)
ejbName - the name of the bean
public boolean hasEjbByName(java.lang.String ejbName)
ejbName - the name of the bean
public ApplicationClientDescriptor getApplicationClientByName(java.lang.String name)
public ApplicationClientDescriptor getApplicationClientByUri(java.lang.String name)
public WebBundleDescriptor getWebBundleDescriptorByName(java.lang.String name)
public WebBundleDescriptor getWebBundleDescriptorByUri(java.lang.String name)
public ConnectorDescriptor getRarDescriptorByUri(java.lang.String name)
public java.util.Set<JndiNameEnvironment> getJndiNameEnvironments()
public java.util.Set<WebService> getWebServiceDescriptors()
public java.util.Set<WebBundleDescriptor> getWebBundleDescriptors()
public BundleDescriptor getStandaloneBundleDescriptor()
public <T extends BundleDescriptor> java.util.Set<T> getBundleDescriptors(java.lang.Class<T> type)
type - the bundle descriptor type requested
public java.util.Set<BundleDescriptor> getBundleDescriptors()
public void addBundleDescriptor(BundleDescriptor bundleDescriptor)
bundleDescriptor - the web bundle descriptor to addpublic void removeBundleDescriptor(BundleDescriptor bundleDescriptor)
bundleDescriptor - the web bundle descriptor to removepublic java.util.Set<EjbBundleDescriptor> getEjbBundleDescriptors()
public java.util.Set<ConnectorDescriptor> getRarDescriptors()
public java.util.Set<ApplicationClientDescriptor> getApplicationClientDescriptors()
public EjbCMPEntityDescriptor getCMPDescriptorFor(java.lang.String className)
public java.util.Vector getEjbDescriptors()
public boolean containsCMPEntity()
public EjbDescriptor[] getSortedEjbDescriptors()
public void setVirtual(boolean virtual)
virtual - new value of this application's virtaul statuspublic boolean isVirtual()
public boolean isUniqueIdSet()
public void setUniqueId(long id)
id - unique id for this applicationpublic long getUniqueId()
public void setPassByReference(boolean passByReference)
passByReference - boolean true or false - pass-by-reference property of application.
true - application is pass-by-reference
false - application is pass-by-valuepublic boolean getPassByReference()
public boolean isPassByReferenceDefined()
public void addApplication(Application application)
public java.util.Set getArchivableDescriptors()
public void setRoleMapper(SecurityRoleMapper roleMapper)
public boolean hasRuntimeInformation()
public SecurityRoleMapper getRoleMapper()
getRoleMapper in interface RoleMappingContainerpublic void setRealm(java.lang.String realm)
public java.lang.String getRealm()
public boolean isDirty()
public java.lang.ClassLoader getClassLoader()
getClassLoader in class BundleDescriptorpublic void print(java.lang.StringBuffer toStringBuffer)
print in class BundleDescriptorpublic void visit(DescriptorVisitor aVisitor)
visit in class DescriptoraVisitor - visitor to traverse the descriptorspublic void visit(ApplicationVisitor aVisitor)
aVisitor - visitor to traverse the descriptorspublic java.lang.String getModuleID()
getModuleID in class BundleDescriptorpublic boolean isApplication()
isApplication in class BundleDescriptorpublic XModuleType getModuleType()
getModuleType in class BundleDescriptorpublic void addSecurityRoleMapping(SecurityRoleMapping roleMapping)
public java.util.List<SecurityRoleMapping> getSecurityRoleMappings()
public java.util.List<WLSecurityRoleAssignment> getWlRoleAssignments()
public void addWLRoleAssignments(WLSecurityRoleAssignment wlRoleAssignment)
public void setLoadedFromApplicationXml(boolean bool)
public boolean isLoadedFromApplicationXml()
public void setResourceList(java.util.List<Resource> rList)
public java.util.List<Resource> getResourceList()
public void addResourceAdapter(java.lang.String raName)
raName - resource-adapter namepublic java.util.Set<java.lang.String> getResourceAdapters()
public java.util.Set<ApplicationParameter> getApplicationParams()
public void addApplicationParam(ApplicationParameter appParam)
public java.util.Set<WLModuleDescriptor> getWLModules()
public void addWLModule(WLModuleDescriptor wlModule)
public boolean getKeepState()
getKeepState in class BundleDescriptorpublic boolean getKeepStateResolved()
public void setKeepStateResolved(java.lang.String keepStateResolved)
keepStateResolved -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||