Package org.glassfish.deployapi
Class SunDeploymentManager
- java.lang.Object
-
- org.glassfish.deployapi.SunDeploymentManager
-
- All Implemented Interfaces:
javax.enterprise.deploy.spi.DeploymentManager
public class SunDeploymentManager extends Object implements javax.enterprise.deploy.spi.DeploymentManager
- Author:
- Jerome Dochez, Tim Quinn, David Matejcek
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classSunDeploymentManager.DeploymentFacilityModuleWorkEncapsulates information used with a single invocation of a DeploymentFacility method-- that is, one item of "work" the DeploymentFacility is being asked to perform.protected static classSunDeploymentManager.TargetModuleIDCollectionOrganizes the target module IDs passed by a JSR88 client for easy processing one module ID at a time.
-
Constructor Summary
Constructors Constructor Description SunDeploymentManager()Creates a new instance of DeploymentManagerSunDeploymentManager(ServerConnectionIdentifier sci)Creates a new instance of DeploymentManager
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.enterprise.deploy.spi.DeploymentConfigurationcreateConfiguration(javax.enterprise.deploy.model.DeployableObject dObj)Retrieve the object that provides server-specific deployment configuration information for the J2EE deployable component.javax.enterprise.deploy.spi.status.ProgressObjectdistribute(javax.enterprise.deploy.spi.Target[] targetList, File moduleArchive, File deploymentPlan)javax.enterprise.deploy.spi.status.ProgressObjectdistribute(javax.enterprise.deploy.spi.Target[] targetList, InputStream moduleArchive, InputStream deploymentPlan)Deprecated.javax.enterprise.deploy.spi.status.ProgressObjectdistribute(javax.enterprise.deploy.spi.Target[] targetList, javax.enterprise.deploy.shared.ModuleType type, InputStream moduleArchive, InputStream deploymentPlan)javax.enterprise.deploy.spi.TargetModuleID[]getAvailableModules(javax.enterprise.deploy.shared.ModuleType moduleType, javax.enterprise.deploy.spi.Target[] targetList)LocalegetCurrentLocale()javax.enterprise.deploy.shared.DConfigBeanVersionTypegetDConfigBeanVersion()LocalegetDefaultLocale()javax.enterprise.deploy.spi.TargetModuleID[]getNonRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType, javax.enterprise.deploy.spi.Target[] targetList)protected DFDeploymentPropertiesgetProperties()Creates new properties; enabled is set to false, nothing else is set.javax.enterprise.deploy.spi.TargetModuleID[]getRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType, javax.enterprise.deploy.spi.Target[] targetList)Locale[]getSupportedLocales()javax.enterprise.deploy.spi.Target[]getTargets()booleanisDConfigBeanVersionSupported(javax.enterprise.deploy.shared.DConfigBeanVersionType version)booleanisLocaleSupported(Locale locale)booleanisRedeploySupported()javax.enterprise.deploy.spi.status.ProgressObjectredeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList, File moduleArchive, File deploymentPlan)javax.enterprise.deploy.spi.status.ProgressObjectredeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList, InputStream moduleArchive, InputStream deploymentPlan)voidrelease()voidsetDConfigBeanVersion(javax.enterprise.deploy.shared.DConfigBeanVersionType version)voidsetLocale(Locale locale)javax.enterprise.deploy.spi.status.ProgressObjectstart(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)javax.enterprise.deploy.spi.status.ProgressObjectstop(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)javax.enterprise.deploy.spi.status.ProgressObjectundeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
-
-
-
Constructor Detail
-
SunDeploymentManager
public SunDeploymentManager()
Creates a new instance of DeploymentManager
-
SunDeploymentManager
public SunDeploymentManager(ServerConnectionIdentifier sci)
Creates a new instance of DeploymentManager
-
-
Method Detail
-
getTargets
public javax.enterprise.deploy.spi.Target[] getTargets() throws IllegalStateException- Specified by:
getTargetsin interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
IllegalStateException
-
getRunningModules
public javax.enterprise.deploy.spi.TargetModuleID[] getRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType, javax.enterprise.deploy.spi.Target[] targetList) throws javax.enterprise.deploy.spi.exceptions.TargetException, IllegalStateException- Specified by:
getRunningModulesin interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
javax.enterprise.deploy.spi.exceptions.TargetExceptionIllegalStateException
-
getNonRunningModules
public javax.enterprise.deploy.spi.TargetModuleID[] getNonRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType, javax.enterprise.deploy.spi.Target[] targetList) throws javax.enterprise.deploy.spi.exceptions.TargetException, IllegalStateException- Specified by:
getNonRunningModulesin interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
javax.enterprise.deploy.spi.exceptions.TargetExceptionIllegalStateException
-
getAvailableModules
public javax.enterprise.deploy.spi.TargetModuleID[] getAvailableModules(javax.enterprise.deploy.shared.ModuleType moduleType, javax.enterprise.deploy.spi.Target[] targetList) throws javax.enterprise.deploy.spi.exceptions.TargetException, IllegalStateException- Specified by:
getAvailableModulesin interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
javax.enterprise.deploy.spi.exceptions.TargetExceptionIllegalStateException
-
createConfiguration
public javax.enterprise.deploy.spi.DeploymentConfiguration createConfiguration(javax.enterprise.deploy.model.DeployableObject dObj) throws javax.enterprise.deploy.spi.exceptions.InvalidModuleExceptionRetrieve the object that provides server-specific deployment configuration information for the J2EE deployable component.- Specified by:
createConfigurationin interfacejavax.enterprise.deploy.spi.DeploymentManager- Parameters:
dObj- An object representing a J2EE deployable component.- Throws:
javax.enterprise.deploy.spi.exceptions.InvalidModuleException- The DeployableObject is an unknown or unsupport component for this configuration tool.
-
distribute
public javax.enterprise.deploy.spi.status.ProgressObject distribute(javax.enterprise.deploy.spi.Target[] targetList, File moduleArchive, File deploymentPlan) throws IllegalStateException- Specified by:
distributein interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
IllegalStateException
-
distribute
@Deprecated public javax.enterprise.deploy.spi.status.ProgressObject distribute(javax.enterprise.deploy.spi.Target[] targetList, InputStream moduleArchive, InputStream deploymentPlan) throws IllegalStateException
Deprecated.- Specified by:
distributein interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
IllegalStateException
-
distribute
public javax.enterprise.deploy.spi.status.ProgressObject distribute(javax.enterprise.deploy.spi.Target[] targetList, javax.enterprise.deploy.shared.ModuleType type, InputStream moduleArchive, InputStream deploymentPlan) throws IllegalStateException- Specified by:
distributein interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
IllegalStateException
-
start
public javax.enterprise.deploy.spi.status.ProgressObject start(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList) throws IllegalStateException- Specified by:
startin interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
IllegalStateException
-
stop
public javax.enterprise.deploy.spi.status.ProgressObject stop(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList) throws IllegalStateException- Specified by:
stopin interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
IllegalStateException
-
undeploy
public javax.enterprise.deploy.spi.status.ProgressObject undeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList) throws IllegalStateException- Specified by:
undeployin interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
IllegalStateException
-
isRedeploySupported
public boolean isRedeploySupported()
- Specified by:
isRedeploySupportedin interfacejavax.enterprise.deploy.spi.DeploymentManager
-
redeploy
public javax.enterprise.deploy.spi.status.ProgressObject redeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList, File moduleArchive, File deploymentPlan) throws UnsupportedOperationException, IllegalStateException- Specified by:
redeployin interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
UnsupportedOperationExceptionIllegalStateException
-
redeploy
public javax.enterprise.deploy.spi.status.ProgressObject redeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList, InputStream moduleArchive, InputStream deploymentPlan) throws UnsupportedOperationException, IllegalStateException- Specified by:
redeployin interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
UnsupportedOperationExceptionIllegalStateException
-
release
public void release()
- Specified by:
releasein interfacejavax.enterprise.deploy.spi.DeploymentManager
-
getDefaultLocale
public Locale getDefaultLocale()
- Specified by:
getDefaultLocalein interfacejavax.enterprise.deploy.spi.DeploymentManager
-
getCurrentLocale
public Locale getCurrentLocale()
- Specified by:
getCurrentLocalein interfacejavax.enterprise.deploy.spi.DeploymentManager
-
setLocale
public void setLocale(Locale locale) throws UnsupportedOperationException
- Specified by:
setLocalein interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
UnsupportedOperationException
-
getSupportedLocales
public Locale[] getSupportedLocales()
- Specified by:
getSupportedLocalesin interfacejavax.enterprise.deploy.spi.DeploymentManager
-
isLocaleSupported
public boolean isLocaleSupported(Locale locale)
- Specified by:
isLocaleSupportedin interfacejavax.enterprise.deploy.spi.DeploymentManager
-
getDConfigBeanVersion
public javax.enterprise.deploy.shared.DConfigBeanVersionType getDConfigBeanVersion()
- Specified by:
getDConfigBeanVersionin interfacejavax.enterprise.deploy.spi.DeploymentManager
-
isDConfigBeanVersionSupported
public boolean isDConfigBeanVersionSupported(javax.enterprise.deploy.shared.DConfigBeanVersionType version)
- Specified by:
isDConfigBeanVersionSupportedin interfacejavax.enterprise.deploy.spi.DeploymentManager
-
setDConfigBeanVersion
public void setDConfigBeanVersion(javax.enterprise.deploy.shared.DConfigBeanVersionType version) throws javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException- Specified by:
setDConfigBeanVersionin interfacejavax.enterprise.deploy.spi.DeploymentManager- Throws:
javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException
-
getProperties
protected DFDeploymentProperties getProperties()
Creates new properties; enabled is set to false, nothing else is set.- Returns:
DFDeploymentProperties
-
-