|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dolphin.resources.deploy.model.AbstractDeployable
Used to handle deployable objects at deployment.
Nested Class Summary | |
static class |
AbstractDeployable.UnknownModuleTypeException
Indicates that the ModuleType could not be guessed. |
Method Summary | |
static void |
copyInputStreamToFile(java.io.InputStream inputStream,
java.io.File outputFile)
Copies the content of an InputStream into the given file. |
static javax.enterprise.deploy.model.DeployableObject |
createFromFile(java.io.File archive)
Loads a DeployableObject from a file. |
static javax.enterprise.deploy.model.DeployableObject |
createFromUrl(java.net.URL url)
Creates a deployable object from the module archive given as a URL. |
java.util.Enumeration |
entries()
|
javax.enterprise.deploy.model.DDBean[] |
getChildBean(java.lang.String xpath)
|
java.lang.Class |
getClassFromScope(java.lang.String className)
|
javax.enterprise.deploy.model.DDBeanRoot |
getDDBeanRoot()
|
javax.enterprise.deploy.model.DDBeanRoot |
getDDBeanRoot(java.lang.String arg0)
|
java.io.InputStream |
getEntry(java.lang.String arg0)
|
java.lang.String |
getModuleDTDVersion()
|
java.lang.String[] |
getText(java.lang.String xpath)
|
javax.enterprise.deploy.shared.ModuleType |
getType()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public javax.enterprise.deploy.model.DDBeanRoot getDDBeanRoot()
getDDBeanRoot
in interface javax.enterprise.deploy.model.DeployableObject
DeployableObject.getDDBeanRoot()
public javax.enterprise.deploy.model.DDBean[] getChildBean(java.lang.String xpath)
getChildBean
in interface javax.enterprise.deploy.model.DeployableObject
DeployableObject.getChildBean(java.lang.String)
public java.lang.String[] getText(java.lang.String xpath)
getText
in interface javax.enterprise.deploy.model.DeployableObject
DeployableObject.getText(java.lang.String)
public java.lang.Class getClassFromScope(java.lang.String className)
getClassFromScope
in interface javax.enterprise.deploy.model.DeployableObject
DeployableObject.getClassFromScope(java.lang.String)
public java.lang.String getModuleDTDVersion()
getModuleDTDVersion
in interface javax.enterprise.deploy.model.DeployableObject
DeployableObject.getModuleDTDVersion()
public javax.enterprise.deploy.shared.ModuleType getType()
getType
in interface javax.enterprise.deploy.model.DeployableObject
DeployableObject.getType()
public static javax.enterprise.deploy.model.DeployableObject createFromFile(java.io.File archive) throws AbstractDeployable.UnknownModuleTypeException, javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
archive
-
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
AbstractDeployable.UnknownModuleTypeException
public static javax.enterprise.deploy.model.DeployableObject createFromUrl(java.net.URL url) throws java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, AbstractDeployable.UnknownModuleTypeException
url
- Specifies the module archive.
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
AbstractDeployable.UnknownModuleTypeException
public static void copyInputStreamToFile(java.io.InputStream inputStream, java.io.File outputFile) throws java.io.FileNotFoundException, java.io.IOException
inputStream
- InputStream where to read from.outputFile
- OutputStream where to write to.
java.io.FileNotFoundException
- when the output file is not existing.
java.io.IOException
- when some IO operating crashed.public javax.enterprise.deploy.model.DDBeanRoot getDDBeanRoot(java.lang.String arg0) throws java.io.FileNotFoundException, javax.enterprise.deploy.model.exceptions.DDBeanCreateException
getDDBeanRoot
in interface javax.enterprise.deploy.model.DeployableObject
java.io.FileNotFoundException
javax.enterprise.deploy.model.exceptions.DDBeanCreateException
public java.util.Enumeration entries()
entries
in interface javax.enterprise.deploy.model.DeployableObject
public java.io.InputStream getEntry(java.lang.String arg0)
getEntry
in interface javax.enterprise.deploy.model.DeployableObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |