Class DeploymentDeployer

java.lang.Object
com.github.fungal.impl.DeploymentDeployer
All Implemented Interfaces:
CloneableDeployer, Deployer, Cloneable

public final class DeploymentDeployer extends Object implements CloneableDeployer
The deployment deployer (deploys .xml files)
Author:
Jesper Pedersen
  • Constructor Details

    • DeploymentDeployer

      public DeploymentDeployer(KernelImpl kernel)
      Constructor
      Parameters:
      kernel - The kernel
  • Method Details

    • accepts

      public boolean accepts(URL deployment)
      Accepts the URL of the deployment
      Specified by:
      accepts in interface Deployer
      Parameters:
      deployment - The URL
      Returns:
      True if the deployer accepts the deployment; otherwise false
    • getOrder

      public int getOrder()
      Get the order for the deployer. The lower the number the sooner the deployer will be scheduled in the deployment chain
      Specified by:
      getOrder in interface Deployer
      Returns:
      The value
    • deploy

      public Deployment deploy(URL url, Context context, ClassLoader parent) throws DeployException
      Deploy
      Specified by:
      deploy in interface Deployer
      Parameters:
      url - The URL
      context - The deployment context
      parent - The parent classloader
      Returns:
      The deployment; or null if no deployment was made
      Throws:
      DeployException - Thrown if an error occurs during deployment
    • clone

      public Deployer clone() throws CloneNotSupportedException
      Clone
      Specified by:
      clone in interface CloneableDeployer
      Overrides:
      clone in class Object
      Returns:
      The copy of the object
      Throws:
      CloneNotSupportedException - Thrown if a copy can't be created