Home » geronimo-2.2-source-release » org.apache.geronimo.deployment » [javadoc | source]
org.apache.geronimo.deployment
public class: DeploymentContext [javadoc | source]
java.lang.Object
   org.apache.geronimo.deployment.DeploymentContext

Direct Known Subclasses:
    EARContext

Nested Class Summary:
interface  DeploymentContext.JarFileFactory   
Field Summary
protected final  AbstractName moduleName     
Constructor:
 public DeploymentContext(File baseDir,
    File inPlaceConfigurationDir,
    Environment environment,
    AbstractName moduleName,
    ConfigurationModuleType moduleType,
    Naming naming,
    ConfigurationManager configurationManager) throws DeploymentException 
 public DeploymentContext(File baseDir,
    File inPlaceConfigurationDir,
    Environment environment,
    AbstractName moduleName,
    ConfigurationModuleType moduleType,
    Naming naming,
    ConfigurationManager configurationManager,
    Collection repositories) throws DeploymentException 
Method from org.apache.geronimo.deployment.DeploymentContext Summary:
addAdditionalDeployment,   addChildConfiguration,   addClass,   addFile,   addFile,   addFile,   addFile,   addGBean,   addGBean,   addInclude,   addInclude,   addInclude,   addIncludeAsPackedJar,   addManifestClassPath,   addManifestClassPath,   close,   findGBean,   findGBean,   findGBeanDatas,   findGBeans,   findGBeans,   flush,   getAdditionalDeployment,   getBaseDir,   getClassLoader,   getCompleteManifestClassPath,   getCompleteManifestClassPath,   getConfigID,   getConfiguration,   getConfigurationData,   getConfigurationManager,   getGBeanInstance,   getGBeanNames,   getInPlaceConfigurationDir,   getModuleName,   getNaming,   getTargetFile,   listGBeans,   removeGBean,   verify
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.deployment.DeploymentContext Detail:
 public  void addAdditionalDeployment(ConfigurationData configurationData) 
 public  void addChildConfiguration(String moduleName,
    ConfigurationData configurationData) 
 public  void addClass(URI targetPath,
    String fqcn,
    byte[] bytes) throws IOException, URISyntaxException 
 public  void addFile(URI targetPath,
    URL source) throws IOException 
 public  void addFile(URI targetPath,
    File source) throws IOException 
 public  void addFile(URI targetPath,
    String source) throws IOException 
 public  void addFile(URI targetPath,
    ZipFile zipFile,
    ZipEntry zipEntry) throws IOException 
 public  void addGBean(GBeanData gbean) throws GBeanAlreadyExistsException 
 public GBeanData addGBean(String name,
    GBeanInfo gbeanInfo) throws GBeanAlreadyExistsException 
 public  void addInclude(URI targetPath,
    URL source) throws IOException 
    Add a file into the deployment context and place it into the path specified in the target path. The newly added file is added to the classpath of the configuration.
 public  void addInclude(URI targetPath,
    File source) throws IOException 
    Add a file into the deployment context and place it into the path specified in the target path. The newly added file is added to the classpath of the configuration.
 public  void addInclude(URI targetPath,
    ZipFile zipFile,
    ZipEntry zipEntry) throws IOException 
    Add a ZIP file entry into the deployment context and place it into the path specified in the target path. The newly added entry is added to the classpath of the configuration.
 public  void addIncludeAsPackedJar(URI targetPath,
    JarFile jarFile) throws IOException 
    Add a packed jar file into the deployment context and place it into the path specified in the target path. The newly added packed jar is added to the classpath of the configuration.
 public  void addManifestClassPath(JarFile moduleFile,
    URI moduleBaseUri) throws DeploymentException 
 public  void addManifestClassPath(JarFile moduleFile,
    URI moduleBaseUri,
    JarFileFactory factory,
    List<DeploymentException> problems) throws DeploymentException 
    Import the classpath from a jar file's manifest. The imported classpath is crafted relative to moduleBaseUri.
 public  void close() throws IOException, DeploymentException 
 public AbstractName findGBean(AbstractNameQuery pattern) throws GBeanNotFoundException 
 public AbstractName findGBean(Set<AbstractNameQuery> patterns) throws GBeanNotFoundException 
 public LinkedHashSet<GBeanData> findGBeanDatas(Configuration configuration,
    AbstractNameQuery pattern) 
 public LinkedHashSet<AbstractName> findGBeans(AbstractNameQuery pattern) 
 public LinkedHashSet<AbstractName> findGBeans(Set<AbstractNameQuery> patterns) 
 public  void flush() throws IOException 
 public List<ConfigurationData> getAdditionalDeployment() 
 public File getBaseDir() 
 public ClassLoader getClassLoader() throws DeploymentException 
 public  void getCompleteManifestClassPath(JarFile moduleFile,
    URI moduleBaseUri,
    URI resolutionUri,
    ClassPathList classpath,
    ModuleList exclusions) throws DeploymentException 
 public  void getCompleteManifestClassPath(JarFile moduleFile,
    URI moduleBaseUri,
    URI resolutionUri,
    ClassPathList classpath,
    ModuleList exclusions,
    JarFileFactory factory,
    List<DeploymentException> problems) throws DeploymentException 
    Recursively construct the complete set of paths in the ear for the manifest classpath of the supplied modulefile. Used only in PersistenceUnitBuilder to figure out if a persistence.xml relates to the starting module. Having a classloader for each ejb module would eliminate the need for this and be more elegant.
 public Artifact getConfigID() 
 public Configuration getConfiguration() 
 public ConfigurationData getConfigurationData() throws DeploymentException 
 public ConfigurationManager getConfigurationManager() 
 public GBeanData getGBeanInstance(AbstractName name) throws GBeanNotFoundException 
 public Set<AbstractName> getGBeanNames() 
 public File getInPlaceConfigurationDir() 
 public AbstractName getModuleName() 
 public Naming getNaming() 
 public File getTargetFile(URI targetPath) 
 public Set<AbstractName> listGBeans(AbstractNameQuery pattern) 
Deprecated! use - findGBeans(pattern)

 public  void removeGBean(AbstractName name) throws GBeanNotFoundException 
 public List<String> verify(Configuration configuration) throws DeploymentException