|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.deploy.api.model.WebLogicDeployableObject
This class is the WebLogic Server implementation of DeployableObject
.
WebLogicDeployableObject encapsulates a single module for deployment purposes.
A deployment tool uses the constructors for this class to present an application module to
the deployer. When the tool is done with this object it is highly recommended that it be formally closed (see
close()
). This ensures resources are closed and removes any temporary files that may have been
created.
Applications can be part of a parent installation directory. This directory structure has the following organization:
install-root (eg myapp) -- app ----- archive (eg myapp.ear) -- plan ----- deployment plan (eg plan.xml) ----- external descriptors (eg META-INF/weblogic-application.xml ...)
Method Summary | |
void |
close()
Closes application resources and removes temporary files. |
static WebLogicDeployableObject |
createDeployableObject(File app)
Create a DeployableObject for an application. |
static WebLogicDeployableObject |
createDeployableObject(File app,
File appRoot)
Create a DeployableObject for an application. |
static WebLogicDeployableObject |
createLazyDeployableObject(File app,
File appRoot)
|
Enumeration |
entries()
Returns an enumeration of the module file entries. |
DDBean[] |
getChildBean(String xpath)
Returns DDBeans based on the specified xpath expression, relative to the root element of the primary descriptor of this DeployableObject. |
Class |
getClassFromScope(String className)
Returns the Class object from this module for the named class, or null if there is no class. |
DDBeanRoot |
getDDBeanRoot()
Returns the root DDBean for this module. |
DDBeanRoot |
getDDBeanRoot(String filename)
Returns a DDBeanRoot object for the named XML instance document. |
DDBeanRoot[] |
getDDBeanRoots()
List of DDBeanRoot objects representing all of the known deployment descriptors for this module |
weblogic.descriptor.DescriptorBean |
getDescriptorBean()
Typed descriptor bean tree for this modules standard descriptor. |
InputStream |
getEntry(String name)
Returns an InputStream for the given entry name. |
String |
getModuleDTDVersion()
Deprecated. As of version 1.1, replaced by DDBeanRoot.getDDBeanRootVersion() |
WebLogicJ2eeApplicationObject |
getParent()
|
String[] |
getText(String xpath)
Returns XML content for each matching element in this module's descriptor. |
ModuleType |
getType()
Returns the ModuleType of the deployment descriptor (for example, the EAR, JAR, WAR, or RAR) that this DeployableObject represents. |
String |
toString()
Returns a String representation of the module type and archive. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public void close()
close
in interface weblogic.deploy.api.internal.Closable
public static WebLogicDeployableObject createDeployableObject(File app) throws InvalidModuleException, IOException
app
- is the archive or root directory of the application.
InvalidModuleException
IOException
public static WebLogicDeployableObject createDeployableObject(File app, File appRoot) throws InvalidModuleException, IOException
app
- is the archive or root directory of the application.appRoot
- is application's installation root directory.
InvalidModuleException
IOException
public static WebLogicDeployableObject createLazyDeployableObject(File app, File appRoot) throws InvalidModuleException, IOException
InvalidModuleException
IOException
public Enumeration entries()
entries
in interface DeployableObject
public DDBean[] getChildBean(String xpath)
getChildBean
in interface DeployableObject
public Class getClassFromScope(String className)
getClassFromScope
in interface DeployableObject
public DDBeanRoot getDDBeanRoot()
SessionHelper.inspect()
then it may throw an
unchecked RuntimeException indicating parse failures
getDDBeanRoot
in interface DeployableObject
public DDBeanRoot getDDBeanRoot(String filename) throws FileNotFoundException, DDBeanCreateException
The descriptor will be parsed and a full tree of DDBean's are created.
getDDBeanRoot
in interface DeployableObject
filename
- The full path name of the XML instance document to return, specified
from the root of the module. The path must be either relative to the root of this module,
or in the same relative location in the module's external configuration directory.
FileNotFoundException
- If the named file cannot be found
DDBeanCreateException
- If an error is encountered while creating the DDBeanRoot object.public DDBeanRoot[] getDDBeanRoots()
public weblogic.descriptor.DescriptorBean getDescriptorBean() throws IOException
IOException
public InputStream getEntry(String name)
getEntry
in interface DeployableObject
name
- The file name relative to the root of the module.
public String getModuleDTDVersion()
getModuleDTDVersion
in interface DeployableObject
public WebLogicJ2eeApplicationObject getParent()
public String[] getText(String xpath)
getText
in interface DeployableObject
xpath
- Is an xpath expression relative to root element of this module.public ModuleType getType()
getType
in interface DeployableObject
public String toString()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs90 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |