FileDocCategorySizeDatePackage
J2eeApplicationObject.javaAPI DocGlassfish v2 API5262Fri May 04 22:35:44 BST 2007javax.enterprise.deploy.model

J2eeApplicationObject

public interface J2eeApplicationObject implements DeployableObject
J2eeApplicationObject is an interface that represents a J2EE application (EAR); it maintains a DeployableObject for each module in the archive.

Fields Summary
Constructors Summary
Methods Summary
public voidaddXpathListener(javax.enterprise.deploy.shared.ModuleType type, java.lang.String xpath, XpathListener xpl)
Register a listener for changes in XPath that are related to this deployableObject.

param
type The type of deployment descriptor to query.
param
xpath The xpath to listen for.
param
xpl The listener.

public DDBean[]getChildBean(javax.enterprise.deploy.shared.ModuleType type, java.lang.String xpath)
Return a list of DDBean based upon an XPath; all deployment descriptors of the specified type are searched.

param
type The type of deployment descriptor to query.
param
xpath An XPath string referring to a location in the deployment descriptor
return
The list of DDBeans or 'null' of there are no matches.

public DeployableObjectgetDeployableObject(java.lang.String uri)
Return the DeployableObject of the specified URI designator.

param
uri Describes where to get the module from.
return
the DeployableObject describing the j2ee module at this uri or 'null' if there is not match.

public DeployableObject[]getDeployableObjects(javax.enterprise.deploy.shared.ModuleType type)
Return the all DeployableObjects of the specified type.

param
type The type of module to return.
return
the list of DeployableObjects describing the j2ee module at this uri or 'null' if there are no matches.

public DeployableObject[]getDeployableObjects()
Return the all DeployableObjects in this application.

return
the DeployableObject describing the j2ee module at this uri or 'null' if there are no matches.

public java.lang.String[]getModuleUris(javax.enterprise.deploy.shared.ModuleType type)
Return the list of URIs of the designated module type.

param
type The type of module to return.
return
the Uris of the contained modules or 'null' if there are no matches.

public java.lang.String[]getModuleUris()
Return the list of URIs for all modules in the application.

return
the Uris of the contained modules or 'null' if there are no matches.

public java.lang.String[]getText(javax.enterprise.deploy.shared.ModuleType type, java.lang.String xpath)
Return the text value from the XPath; search only the deployment descriptors of the specified type.

param
type The type of deployment descriptor to query.
param
xpath An xpath string referring to a location in the deployment descriptor
return
The text values of this xpath or 'null' if there are no matches.

public voidremoveXpathListener(javax.enterprise.deploy.shared.ModuleType type, java.lang.String xpath, XpathListener xpl)
Unregister the listener for an XPath.

param
type The type of deployment descriptor to query.
param
xpath he XPath to listen for
param
xpl The listener