
javax.enterprise.deploy.spi.DeploymentConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jboss-jad-api_1.2_spec Show documentation
Show all versions of jboss-jad-api_1.2_spec Show documentation
The JavaEE Application Deployment 1.2 API classes
package javax.enterprise.deploy.spi;
import java.io.InputStream;
import java.io.OutputStream;
import javax.enterprise.deploy.model.DDBeanRoot;
import javax.enterprise.deploy.model.DeployableObject;
import javax.enterprise.deploy.spi.exceptions.BeanNotFoundException;
import javax.enterprise.deploy.spi.exceptions.ConfigurationException;
/**
* A container for server specific configuration for a top level deployment.
*
* @author Adrian Brock
* @version $Revision$
*/
public interface DeploymentConfiguration
{
// Constants -----------------------------------------------------
// Public --------------------------------------------------------
/**
* Return an object that provides access to the deployment descriptor
*
* @return the deployable object
*/
DeployableObject getDeployableObject();
/**
* Return the top level configuration for a deployment descriptor
*
* @param bean the root of the deployment descriptor
* @return the configuration
* @throws ConfigurationException for an error in the deployment descriptor
*/
DConfigBeanRoot getDConfigBeanRoot(DDBeanRoot bean) throws ConfigurationException;
/**
* Remove a root configuration and all its children
*
* @param bean the configuration
* @throws BeanNotFoundException when the bean is not found
*/
void removeDConfigBean(DConfigBeanRoot bean) throws BeanNotFoundException;
/**
* Restore a configuration from an input stream
*
* @param input the input stream
* @param bean the deployment descriptor
* @return the configuration
* @throws ConfigurationException when there is an error in the configuration
*/
DConfigBeanRoot restoreDConfigBean(InputStream input, DDBeanRoot bean) throws ConfigurationException;
/**
* Save a configuration to an output stream
*
* @param output the output stream
* @param bean the configuration
* @throws ConfigurationException when there is an error in the configuration
*/
void saveDConfigBean(OutputStream output, DConfigBeanRoot bean) throws ConfigurationException;
/**
* Restores a full set of configuration beans
*
* @param input the input stream
* @throws ConfigurationException for an error in the configuration
*/
void restore(InputStream input) throws ConfigurationException;
/**
* Saves the fulls set of configuration beans
*
* @param output the output stream
* @throws ConfigurationException for an error in the configuration
*/
void save(OutputStream output) throws ConfigurationException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy