|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.deployment.DeploymentContext
public class DeploymentContext
Field Summary | |
---|---|
protected org.apache.geronimo.gbean.AbstractName |
moduleName
|
Constructor Summary | |
---|---|
DeploymentContext(File baseDir,
File inPlaceConfigurationDir,
org.apache.geronimo.kernel.repository.Environment environment,
org.apache.geronimo.gbean.AbstractName moduleName,
org.apache.geronimo.kernel.config.ConfigurationModuleType moduleType,
org.apache.geronimo.kernel.Naming naming,
org.apache.geronimo.kernel.config.ConfigurationManager configurationManager)
|
|
DeploymentContext(File baseDir,
File inPlaceConfigurationDir,
org.apache.geronimo.kernel.repository.Environment environment,
org.apache.geronimo.gbean.AbstractName moduleName,
org.apache.geronimo.kernel.config.ConfigurationModuleType moduleType,
org.apache.geronimo.kernel.Naming naming,
org.apache.geronimo.kernel.config.ConfigurationManager configurationManager,
Collection repositories)
|
Method Summary | |
---|---|
void |
addAdditionalDeployment(org.apache.geronimo.kernel.config.ConfigurationData configurationData)
|
void |
addChildConfiguration(String moduleName,
org.apache.geronimo.kernel.config.ConfigurationData configurationData)
|
void |
addClass(URI targetPath,
String fqcn,
byte[] bytes)
|
void |
addFile(URI targetPath,
File source)
|
void |
addFile(URI targetPath,
String source)
|
void |
addFile(URI targetPath,
URL source)
|
void |
addFile(URI targetPath,
ZipFile zipFile,
ZipEntry zipEntry)
|
void |
addGBean(org.apache.geronimo.gbean.GBeanData gbean)
|
org.apache.geronimo.gbean.GBeanData |
addGBean(String name,
org.apache.geronimo.gbean.GBeanInfo gbeanInfo)
|
void |
addInclude(URI targetPath,
File source)
Add a file into the deployment context and place it into the path specified in the target path. |
void |
addInclude(URI targetPath,
URL source)
Add a file into the deployment context and place it into the path specified in the target path. |
void |
addInclude(URI targetPath,
ZipFile zipFile,
ZipEntry zipEntry)
Add a ZIP file entry into the deployment context and place it into the path specified in the target path. |
void |
addIncludeAsPackedJar(URI targetPath,
JarFile jarFile)
Add a packed jar file into the deployment context and place it into the path specified in the target path. |
void |
addManifestClassPath(JarFile moduleFile,
URI moduleBaseUri)
Import the classpath from a jar file's manifest. |
void |
close()
|
org.apache.geronimo.gbean.AbstractName |
findGBean(org.apache.geronimo.gbean.AbstractNameQuery pattern)
|
org.apache.geronimo.gbean.AbstractName |
findGBean(Set patterns)
|
LinkedHashSet |
findGBeans(org.apache.geronimo.gbean.AbstractNameQuery pattern)
|
LinkedHashSet |
findGBeans(Set patterns)
|
void |
flush()
|
List |
getAdditionalDeployment()
|
File |
getBaseDir()
|
ClassLoader |
getClassLoader()
|
org.apache.geronimo.kernel.repository.Artifact |
getConfigID()
|
org.apache.geronimo.kernel.config.Configuration |
getConfiguration()
|
org.apache.geronimo.kernel.config.ConfigurationData |
getConfigurationData()
|
org.apache.geronimo.kernel.config.ConfigurationManager |
getConfigurationManager()
|
org.apache.geronimo.gbean.GBeanData |
getGBeanInstance(org.apache.geronimo.gbean.AbstractName name)
|
Set |
getGBeanNames()
|
File |
getInPlaceConfigurationDir()
|
org.apache.geronimo.gbean.AbstractName |
getModuleName()
|
org.apache.geronimo.kernel.Naming |
getNaming()
|
File |
getTargetFile(URI targetPath)
|
Set |
listGBeans(org.apache.geronimo.gbean.AbstractNameQuery pattern)
Deprecated. use findGBeans(pattern) |
void |
removeGBean(org.apache.geronimo.gbean.AbstractName name)
|
List |
verify()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.geronimo.gbean.AbstractName moduleName
Constructor Detail |
---|
public DeploymentContext(File baseDir, File inPlaceConfigurationDir, org.apache.geronimo.kernel.repository.Environment environment, org.apache.geronimo.gbean.AbstractName moduleName, org.apache.geronimo.kernel.config.ConfigurationModuleType moduleType, org.apache.geronimo.kernel.Naming naming, org.apache.geronimo.kernel.config.ConfigurationManager configurationManager, Collection repositories) throws org.apache.geronimo.common.DeploymentException
org.apache.geronimo.common.DeploymentException
public DeploymentContext(File baseDir, File inPlaceConfigurationDir, org.apache.geronimo.kernel.repository.Environment environment, org.apache.geronimo.gbean.AbstractName moduleName, org.apache.geronimo.kernel.config.ConfigurationModuleType moduleType, org.apache.geronimo.kernel.Naming naming, org.apache.geronimo.kernel.config.ConfigurationManager configurationManager) throws org.apache.geronimo.common.DeploymentException
org.apache.geronimo.common.DeploymentException
Method Detail |
---|
public org.apache.geronimo.kernel.config.ConfigurationManager getConfigurationManager()
public org.apache.geronimo.kernel.repository.Artifact getConfigID()
public File getBaseDir()
public File getInPlaceConfigurationDir()
public org.apache.geronimo.kernel.Naming getNaming()
public org.apache.geronimo.gbean.GBeanData addGBean(String name, org.apache.geronimo.gbean.GBeanInfo gbeanInfo) throws org.apache.geronimo.kernel.GBeanAlreadyExistsException
org.apache.geronimo.kernel.GBeanAlreadyExistsException
public void addGBean(org.apache.geronimo.gbean.GBeanData gbean) throws org.apache.geronimo.kernel.GBeanAlreadyExistsException
org.apache.geronimo.kernel.GBeanAlreadyExistsException
public void removeGBean(org.apache.geronimo.gbean.AbstractName name) throws org.apache.geronimo.kernel.GBeanNotFoundException
org.apache.geronimo.kernel.GBeanNotFoundException
public Set getGBeanNames()
public Set listGBeans(org.apache.geronimo.gbean.AbstractNameQuery pattern)
public org.apache.geronimo.gbean.AbstractName findGBean(org.apache.geronimo.gbean.AbstractNameQuery pattern) throws org.apache.geronimo.kernel.GBeanNotFoundException
org.apache.geronimo.kernel.GBeanNotFoundException
public org.apache.geronimo.gbean.AbstractName findGBean(Set patterns) throws org.apache.geronimo.kernel.GBeanNotFoundException
org.apache.geronimo.kernel.GBeanNotFoundException
public LinkedHashSet findGBeans(org.apache.geronimo.gbean.AbstractNameQuery pattern)
public LinkedHashSet findGBeans(Set patterns)
public org.apache.geronimo.gbean.GBeanData getGBeanInstance(org.apache.geronimo.gbean.AbstractName name) throws org.apache.geronimo.kernel.GBeanNotFoundException
org.apache.geronimo.kernel.GBeanNotFoundException
public void addIncludeAsPackedJar(URI targetPath, JarFile jarFile) throws IOException
targetPath
- where the packed jar file should be placedjarFile
- the jar file to copy
IOException
- if there's a problem copying the jar filepublic void addInclude(URI targetPath, ZipFile zipFile, ZipEntry zipEntry) throws IOException
targetPath
- where the ZIP file entry should be placedzipFile
- the ZIP filezipEntry
- the ZIP file entry
IOException
- if there's a problem copying the ZIP entrypublic void addInclude(URI targetPath, URL source) throws IOException
targetPath
- where the file should be placedsource
- the URL of file to be copied
IOException
- if there's a problem copying the ZIP entrypublic void addInclude(URI targetPath, File source) throws IOException
targetPath
- where the file should be placedsource
- the file to be copied
IOException
- if there's a problem copying the ZIP entrypublic void addManifestClassPath(JarFile moduleFile, URI moduleBaseUri) throws org.apache.geronimo.common.DeploymentException
moduleBaseUri
.
moduleFile
- the jar file from which the manifest is obtained.moduleBaseUri
- the base for the imported classpath
org.apache.geronimo.common.DeploymentException
- if there is a problem with the classpath in
the manifestpublic void addClass(URI targetPath, String fqcn, byte[] bytes) throws IOException, URISyntaxException
IOException
URISyntaxException
public void addFile(URI targetPath, ZipFile zipFile, ZipEntry zipEntry) throws IOException
IOException
public void addFile(URI targetPath, URL source) throws IOException
IOException
public void addFile(URI targetPath, File source) throws IOException
IOException
public void addFile(URI targetPath, String source) throws IOException
IOException
public File getTargetFile(URI targetPath)
public ClassLoader getClassLoader() throws org.apache.geronimo.common.DeploymentException
org.apache.geronimo.common.DeploymentException
public org.apache.geronimo.kernel.config.Configuration getConfiguration()
public void flush() throws IOException
IOException
public void close() throws IOException, org.apache.geronimo.common.DeploymentException
IOException
org.apache.geronimo.common.DeploymentException
public void addChildConfiguration(String moduleName, org.apache.geronimo.kernel.config.ConfigurationData configurationData)
public org.apache.geronimo.kernel.config.ConfigurationData getConfigurationData() throws org.apache.geronimo.common.DeploymentException
org.apache.geronimo.common.DeploymentException
public void addAdditionalDeployment(org.apache.geronimo.kernel.config.ConfigurationData configurationData)
public List getAdditionalDeployment()
public org.apache.geronimo.gbean.AbstractName getModuleName()
public List verify() throws org.apache.geronimo.common.DeploymentException
org.apache.geronimo.common.DeploymentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |