org.apache.geronimo.deployment
Interface ConfigurationBuilder

All Known Implementing Classes:
ServiceConfigBuilder

public interface ConfigurationBuilder

Version:
$Revision: 1.9 $ $Date: 2004/04/23 03:08:28 $

Method Summary
 void buildConfiguration(File outfile, Manifest manifest, File module, org.apache.xmlbeans.XmlObject plan)
          Build a configuration from a local file
 void buildConfiguration(File outfile, Manifest manifest, InputStream module, org.apache.xmlbeans.XmlObject plan)
          Build a configuration from an arbitrary input stream
 boolean canConfigure(org.apache.xmlbeans.XmlObject plan)
          Determine if this builder can handle the supplied plan.
 org.apache.xmlbeans.XmlObject getDeploymentPlan(URL module)
          Extract the deployment plan from a module if this builder can process it.
 org.apache.xmlbeans.SchemaTypeLoader[] getTypeLoaders()
           
 

Method Detail

getTypeLoaders

public org.apache.xmlbeans.SchemaTypeLoader[] getTypeLoaders()

canConfigure

public boolean canConfigure(org.apache.xmlbeans.XmlObject plan)
Determine if this builder can handle the supplied plan.

Parameters:
plan - the plan to examine
Returns:
true if this builder will handle it

getDeploymentPlan

public org.apache.xmlbeans.XmlObject getDeploymentPlan(URL module)
                                                throws org.apache.xmlbeans.XmlException
Extract the deployment plan from a module if this builder can process it.

Parameters:
module - the URL of the module to examine
Returns:
the deployment plan, or null if this module can not handle it
Throws:
org.apache.xmlbeans.XmlException

buildConfiguration

public void buildConfiguration(File outfile,
                               Manifest manifest,
                               File module,
                               org.apache.xmlbeans.XmlObject plan)
                        throws IOException,
                               DeploymentException
Build a configuration from a local file

Parameters:
outfile - the file to write the configuration to
module - the module to build
plan - the deployment plan
Throws:
IOException - if there was a problem reading or writing the files
DeploymentException - if there was a problem with the configuration

buildConfiguration

public void buildConfiguration(File outfile,
                               Manifest manifest,
                               InputStream module,
                               org.apache.xmlbeans.XmlObject plan)
                        throws IOException,
                               DeploymentException
Build a configuration from an arbitrary input stream

Parameters:
outfile - the file to write the configuration to
module - the module to build
plan - the deployment plan
Throws:
IOException - if there was a problem reading or writing the files
DeploymentException - if there was a problem with the configuration


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.