Search in sources :

Example 1 with SunDeploymentConfiguration

use of org.glassfish.deployapi.config.SunDeploymentConfiguration in project Payara by payara.

the class SunDeploymentManager method createConfiguration.

/**
 * Retrieve the object that provides server-specific deployment
 * configuration information for the J2EE deployable component.
 *
 * @param dObj An object representing a J2EE deployable component.
 * @throws InvalidModuleException The DeployableObject is an
 *                      unknown or unsupport component for this
 *                      configuration tool.
 */
public DeploymentConfiguration createConfiguration(DeployableObject dObj) throws InvalidModuleException {
    try {
        SunDeploymentConfiguration deploymentConfiguration = new SunDeploymentConfiguration(dObj);
        deploymentConfiguration.setDeploymentManager(this);
        return deploymentConfiguration;
    } catch (ConfigurationException e) {
        InvalidModuleException ime = new InvalidModuleException(e.getMessage());
        ime.initCause(e);
        throw ime;
    }
}
Also used : ConfigurationException(javax.enterprise.deploy.spi.exceptions.ConfigurationException) SunDeploymentConfiguration(org.glassfish.deployapi.config.SunDeploymentConfiguration) InvalidModuleException(javax.enterprise.deploy.spi.exceptions.InvalidModuleException)

Aggregations

ConfigurationException (javax.enterprise.deploy.spi.exceptions.ConfigurationException)1 InvalidModuleException (javax.enterprise.deploy.spi.exceptions.InvalidModuleException)1 SunDeploymentConfiguration (org.glassfish.deployapi.config.SunDeploymentConfiguration)1