Interface Deployer

All Known Implementing Classes:
AbstractDeployer, ModuleDeployer, POJODeployer, ServiceDeployer, TransportDeployer

public interface Deployer
This interface is used to provide the custom deployment mechanism , where you can write your own Deployer to process a particular type and make that to a service or a module.
  • Field Details

  • Method Details

    • init

      void init(ConfigurationContext configCtx)
      Initialize the Deployer
      Parameters:
      configCtx - our ConfigurationContext
    • deploy

      void deploy(DeploymentFileData deploymentFileData) throws DeploymentException
      Process a file and add it to the configuration
      Parameters:
      deploymentFileData - the DeploymentFileData object to deploy
      Throws:
      DeploymentException - if there is a problem
    • setDirectory

      void setDirectory(String directory)
      Set the directory
      Parameters:
      directory - directory name
    • setExtension

      void setExtension(String extension)
      Set the extension to look for TODO: Support multiple extensions?
      Parameters:
      extension - the file extension associated with this Deployer
    • undeploy

      void undeploy(String fileName) throws DeploymentException
      Remove a given file from the configuration
      Parameters:
      fileName - name of item to remove
      Throws:
      DeploymentException - if there is a problem
    • cleanup

      void cleanup() throws DeploymentException
      Cleanup deployment
      Throws:
      DeploymentException - If an error occurs during cleanup
    • sort

      default void sort(List<DeploymentFileData> filesToDeploy, int startIndex, int toIndex)
      Sorts the sublist of deployment artifacts within [startIndex, toIndex). Deployers may override this to apply custom ordering within the subrange. The default implementation sorts by file name in ascending order.
      Parameters:
      filesToDeploy - the list of DeploymentFileData
      startIndex - the start index (inclusive) of the sublist to sort
      toIndex - the end index (exclusive) of the sublist to sort