Class AbstractCopyingInstalledLocalDeployer

    • Method Detail

      • setShouldDeployExpanded

        public void setShouldDeployExpanded​(DeployableType type,
                                            boolean flag)
        Decide whether some expanded deployables of the specified type should be deployed or not. Some classes using this deployer may not want to deploy some expanded deployables, as they may want to deploy them in-situ by modifying the container's configuration file to point to the location of the expanded deployable. This saves some copying time and make it easier for development round-trips.
        Parameters:
        type - the deployable type
        flag - whether expanded deployment of the specified deployment type should be allowed or not
      • shouldDeployExpanded

        protected boolean shouldDeployExpanded​(DeployableType type)
        Parameters:
        type - the deployable type
        Returns:
        whether expanded deployment of the specified deployment type should be done
      • canBeDeployed

        protected boolean canBeDeployed​(Deployable newDeployable)
        Checks whether the given Deployable can actually be deployed and whether a deployable has a web context path that already exist in another previously deployed Deployable.
        Parameters:
        newDeployable - deployable
        Returns:
        true, if the deployable can be deployed
      • getDeployableDir

        public abstract String getDeployableDir​(Deployable deployable)
        Specifies the directory Deployables should be copied to.
        Parameters:
        deployable - Deployable to deploy.
        Returns:
        Deployable directory
      • doDeploy

        protected void doDeploy​(String deployableDir,
                                Deployable deployable)
        Do the actual deployment. This can be overriden.
        Parameters:
        deployableDir - Directory in which to deploy.
        deployable - Deployable to deploy.
      • getDeployableName

        protected String getDeployableName​(Deployable deployable)
        Gets the deployable name for the given deployable.
        Parameters:
        deployable - Deployable to get the name for.
        Returns:
        Deployable name.