|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.enterprise.deploy.model Interface DeployableObject
- 所有已知子接口:
- J2eeApplicationObject
public interface DeployableObject
The DeployableObject interface is an abstract representation of a J2EE deployable module (JAR, WAR, RAR, EAR). A DeployableObject provides access to the module's deployment descriptor and class files.
- 版本:
- 0.1
- 作者:
- gfink
方法摘要 | |
---|---|
Enumeration |
entries()
Returns an enumeration of the module file entries. |
DDBean[] |
getChildBean(String xpath)
Return an array of standard beans representing the XML content returned based upon the XPath. |
Class |
getClassFromScope(String className)
Retrieve the specified class from this deployable module. |
DDBeanRoot |
getDDBeanRoot()
Return the top level standard bean representing the root of the deployment descriptor. |
DDBeanRoot |
getDDBeanRoot(String filename)
Returns a DDBeanRoot object for the XML instance document named. |
InputStream |
getEntry(String name)
Returns the InputStream for the given entry name The file name must be relative to the root of the module. |
String |
getModuleDTDVersion()
Deprecated. As of version 1.1 replaced by DDBeanRoot.getDDBeanRootVersion() |
String[] |
getText(String xpath)
Return the XML content associated with the XPath from a deployment descriptor. |
ModuleType |
getType()
Return the ModuleType of deployment descriptor (i.e., EAR, JAR, WAR, RAR) this deployable object represents. |
方法详细信息 |
---|
getType
ModuleType getType()
- Return the ModuleType of deployment descriptor (i.e., EAR,
JAR, WAR, RAR) this deployable object represents.
Values are found in DeploymentManager.
- 返回:
- The ModuleType of deployable object
getDDBeanRoot
DDBeanRoot getDDBeanRoot()
- Return the top level standard bean representing
the root of the deployment descriptor.
- 返回:
- A standard bean representing the deployment descriptor.
getChildBean
DDBean[] getChildBean(String xpath)
- Return an array of standard beans representing the
XML content returned based upon the XPath.
- 参数:
xpath
- An XPath string identifying the data to be extracted from the deployment descriptor.- 返回:
- a array of DDBeans or 'null' if no matching data found.
getText
String[] getText(String xpath)
- Return the XML content associated with the XPath
from a deployment descriptor.
- 参数:
xpath
- An xpath string referring to a location in the deployment descriptor- 返回:
- a list XML content or 'null' if no matching data found.
getClassFromScope
Class getClassFromScope(String className)
- Retrieve the specified class from this deployable module.
One use: to get all finder methods from an EJB If the tool is attempting to package an module and retrieve a class from the package, the class request may fail. The class may not yet be available. The tool should respect the manifest cross-path entries.
- 参数:
className
- Class to retrieve.- 返回:
- Class representation of the class
getModuleDTDVersion
String getModuleDTDVersion()
- Deprecated. As of version 1.1 replaced by
DDBeanRoot.getDDBeanRootVersion()
- Returns the DTD version number given in the XML
DOCTYPE text provided in every standard J2EE module's
deployment descriptor file.
- 返回:
- a string containing the DTD version number
A module's deployment descriptor file always contains a document type identifier, DOCTYPE. The DOCTYPE statement contains the module DTD version number in the label of the statement. The format of the DOCTYPE statement is:
-
<!DOCTYPE root_element PUBLIC
"-//organization//label//language" "location">
-
<!DOCTYPE application-client PUBLIC
"-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.3//EN"
"http://java.sun.com/dtd/application-client_1_3.dtd">
getDDBeanRoot
DDBeanRoot getDDBeanRoot(String filename) throws FileNotFoundException, DDBeanCreateException
- Returns a DDBeanRoot object for the XML instance document named.
This method should be used to return DDBeanRoot objects for non
deployment descriptor XML instance documents such as WSDL files.
- 返回:
- a DDBeanRoot object for the XML data.
- 抛出异常:
java.io.FileNotFoundException,
- if the named file can not be foundDDBeanCreateException
- if an error is encountered creating the DDBeanRoot object.FileNotFoundException
entries
Enumeration entries()
- Returns an enumeration of the module file entries. All elements
in the enumeration are of type String. Each String represents a
file name relative to the root of the module.
- 返回:
- an enumeration of the archive file entries.
getEntry
InputStream getEntry(String name)
- Returns the InputStream for the given entry name
The file name must be relative to the root of the module.
- 参数:
name
- the file name relative to the root of the module.- 返回:
- the InputStream for the given entry name or null if not found.
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.