|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
---|---|
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. |
String |
getModuleDTDVersion()
Deprecated. As of version 1.1, replace by DDBeanRoot.getDDBeanRootVersion() |
String[] |
getText(String xpath)
|
ModuleType |
getType()
Return the ModuleType of deployment descriptor (i.e., EAR, JAR, WAR, RAR) this deployable object represents. |
Method Detail |
---|
ModuleType getType()
DDBeanRoot getDDBeanRoot()
DDBean[] getChildBean(String xpath)
xpath
- AAn XPath string identifying the data to be extracted from the deployment descriptor.
null
if no matching data is found.String[] getText(String xpath)
xpath
- An xpath string referring to a location in the deployment descriptor
null
if no matching data is found.Class getClassFromScope(String className)
One use: to get all finder methods from an EJB. If the tool is attempting to package a 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 Class-Path entries.
className
- Class to retrieve.
String getModuleDTDVersion()
DDBeanRoot getDDBeanRoot(String filename) throws FileNotFoundException, DDBeanCreateException
filename
- the full path name from the root of the module of the xml
instance document for which a DDBeanRoot object is to be returned.
FileNotFoundException
- if the named file can not be found
DDBeanCreateException
- if an error is encountered creating the DDBeanRoot object.Enumeration entries()
InputStream getEntry(String name)
name
- the file name relative to the root of the module.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |