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 class
SunDeploymentManager.DeploymentFacilityModuleWork
Encapsulates 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 class
SunDeploymentManager.TargetModuleIDCollection
Organizes 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.DeploymentConfiguration
createConfiguration(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.ProgressObject
distribute(javax.enterprise.deploy.spi.Target[] targetList, File moduleArchive, File deploymentPlan)
javax.enterprise.deploy.spi.status.ProgressObject
distribute(javax.enterprise.deploy.spi.Target[] targetList, InputStream moduleArchive, InputStream deploymentPlan)
Deprecated.javax.enterprise.deploy.spi.status.ProgressObject
distribute(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)
Locale
getCurrentLocale()
javax.enterprise.deploy.shared.DConfigBeanVersionType
getDConfigBeanVersion()
Locale
getDefaultLocale()
javax.enterprise.deploy.spi.TargetModuleID[]
getNonRunningModules(javax.enterprise.deploy.shared.ModuleType moduleType, javax.enterprise.deploy.spi.Target[] targetList)
protected DFDeploymentProperties
getProperties()
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()
boolean
isDConfigBeanVersionSupported(javax.enterprise.deploy.shared.DConfigBeanVersionType version)
boolean
isLocaleSupported(Locale locale)
boolean
isRedeploySupported()
javax.enterprise.deploy.spi.status.ProgressObject
redeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList, File moduleArchive, File deploymentPlan)
javax.enterprise.deploy.spi.status.ProgressObject
redeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList, InputStream moduleArchive, InputStream deploymentPlan)
void
release()
void
setDConfigBeanVersion(javax.enterprise.deploy.shared.DConfigBeanVersionType version)
void
setLocale(Locale locale)
javax.enterprise.deploy.spi.status.ProgressObject
start(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
javax.enterprise.deploy.spi.status.ProgressObject
stop(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList)
javax.enterprise.deploy.spi.status.ProgressObject
undeploy(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:
getTargets
in 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:
getRunningModules
in interfacejavax.enterprise.deploy.spi.DeploymentManager
- Throws:
javax.enterprise.deploy.spi.exceptions.TargetException
IllegalStateException
-
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:
getNonRunningModules
in interfacejavax.enterprise.deploy.spi.DeploymentManager
- Throws:
javax.enterprise.deploy.spi.exceptions.TargetException
IllegalStateException
-
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:
getAvailableModules
in interfacejavax.enterprise.deploy.spi.DeploymentManager
- Throws:
javax.enterprise.deploy.spi.exceptions.TargetException
IllegalStateException
-
createConfiguration
public javax.enterprise.deploy.spi.DeploymentConfiguration createConfiguration(javax.enterprise.deploy.model.DeployableObject dObj) throws javax.enterprise.deploy.spi.exceptions.InvalidModuleException
Retrieve the object that provides server-specific deployment configuration information for the J2EE deployable component.- Specified by:
createConfiguration
in 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:
distribute
in 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:
distribute
in 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:
distribute
in 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:
start
in 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:
stop
in 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:
undeploy
in interfacejavax.enterprise.deploy.spi.DeploymentManager
- Throws:
IllegalStateException
-
isRedeploySupported
public boolean isRedeploySupported()
- Specified by:
isRedeploySupported
in 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:
redeploy
in interfacejavax.enterprise.deploy.spi.DeploymentManager
- Throws:
UnsupportedOperationException
IllegalStateException
-
redeploy
public javax.enterprise.deploy.spi.status.ProgressObject redeploy(javax.enterprise.deploy.spi.TargetModuleID[] moduleIDList, InputStream moduleArchive, InputStream deploymentPlan) throws UnsupportedOperationException, IllegalStateException
- Specified by:
redeploy
in interfacejavax.enterprise.deploy.spi.DeploymentManager
- Throws:
UnsupportedOperationException
IllegalStateException
-
release
public void release()
- Specified by:
release
in interfacejavax.enterprise.deploy.spi.DeploymentManager
-
getDefaultLocale
public Locale getDefaultLocale()
- Specified by:
getDefaultLocale
in interfacejavax.enterprise.deploy.spi.DeploymentManager
-
getCurrentLocale
public Locale getCurrentLocale()
- Specified by:
getCurrentLocale
in interfacejavax.enterprise.deploy.spi.DeploymentManager
-
setLocale
public void setLocale(Locale locale) throws UnsupportedOperationException
- Specified by:
setLocale
in interfacejavax.enterprise.deploy.spi.DeploymentManager
- Throws:
UnsupportedOperationException
-
getSupportedLocales
public Locale[] getSupportedLocales()
- Specified by:
getSupportedLocales
in interfacejavax.enterprise.deploy.spi.DeploymentManager
-
isLocaleSupported
public boolean isLocaleSupported(Locale locale)
- Specified by:
isLocaleSupported
in interfacejavax.enterprise.deploy.spi.DeploymentManager
-
getDConfigBeanVersion
public javax.enterprise.deploy.shared.DConfigBeanVersionType getDConfigBeanVersion()
- Specified by:
getDConfigBeanVersion
in interfacejavax.enterprise.deploy.spi.DeploymentManager
-
isDConfigBeanVersionSupported
public boolean isDConfigBeanVersionSupported(javax.enterprise.deploy.shared.DConfigBeanVersionType version)
- Specified by:
isDConfigBeanVersionSupported
in interfacejavax.enterprise.deploy.spi.DeploymentManager
-
setDConfigBeanVersion
public void setDConfigBeanVersion(javax.enterprise.deploy.shared.DConfigBeanVersionType version) throws javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException
- Specified by:
setDConfigBeanVersion
in 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
-
-