Class 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
    • 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 interface javax.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 interface javax.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 interface javax.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 interface javax.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 interface javax.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 interface javax.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 interface javax.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 interface javax.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 interface javax.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 interface javax.enterprise.deploy.spi.DeploymentManager
        Throws:
        IllegalStateException
      • isRedeploySupported

        public boolean isRedeploySupported()
        Specified by:
        isRedeploySupported in interface javax.enterprise.deploy.spi.DeploymentManager
      • release

        public void release()
        Specified by:
        release in interface javax.enterprise.deploy.spi.DeploymentManager
      • getDefaultLocale

        public Locale getDefaultLocale()
        Specified by:
        getDefaultLocale in interface javax.enterprise.deploy.spi.DeploymentManager
      • getCurrentLocale

        public Locale getCurrentLocale()
        Specified by:
        getCurrentLocale in interface javax.enterprise.deploy.spi.DeploymentManager
      • getSupportedLocales

        public Locale[] getSupportedLocales()
        Specified by:
        getSupportedLocales in interface javax.enterprise.deploy.spi.DeploymentManager
      • isLocaleSupported

        public boolean isLocaleSupported​(Locale locale)
        Specified by:
        isLocaleSupported in interface javax.enterprise.deploy.spi.DeploymentManager
      • getDConfigBeanVersion

        public javax.enterprise.deploy.shared.DConfigBeanVersionType getDConfigBeanVersion()
        Specified by:
        getDConfigBeanVersion in interface javax.enterprise.deploy.spi.DeploymentManager
      • isDConfigBeanVersionSupported

        public boolean isDConfigBeanVersionSupported​(javax.enterprise.deploy.shared.DConfigBeanVersionType version)
        Specified by:
        isDConfigBeanVersionSupported in interface javax.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 interface javax.enterprise.deploy.spi.DeploymentManager
        Throws:
        javax.enterprise.deploy.spi.exceptions.DConfigBeanVersionUnsupportedException