Class BeanDeploymentImpl

java.lang.Object
com.github.fungal.impl.BeanDeploymentImpl
All Implemented Interfaces:
BeanDeployment, Deployment

public class BeanDeploymentImpl extends Object implements BeanDeployment
A bean deployment for Fungal
Author:
Jesper Pedersen
  • Constructor Details

    • BeanDeploymentImpl

      public BeanDeploymentImpl(URL deployment, List<String> beans, Map<String,List<Method>> uninstall, Map<String,String> stops, Map<String,String> destroys, Set<String> ignoreStops, Set<String> ignoreDestroys, KernelImpl kernel)
      Constructor
      Parameters:
      deployment - The deployment
      beans - The list of bean names for the deployment
      uninstall - Uninstall methods for beans
      stops - Stop methods for beans
      destroys - Destroy methods for beans
      ignoreStops - Ignore stop methods for beans
      ignoreDestroys - Ignore destroy methods for beans
      kernel - The kernel
  • Method Details

    • getBeans

      public List<String> getBeans()
      Get the bean names
      Specified by:
      getBeans in interface BeanDeployment
      Returns:
      The values
    • getURL

      public URL getURL()
      Get the unique URL for the deployment
      Specified by:
      getURL in interface Deployment
      Returns:
      The URL
    • getClassLoader

      public ClassLoader getClassLoader()
      Get the classloader
      Specified by:
      getClassLoader in interface Deployment
      Returns:
      The classloader
    • stop

      public void stop() throws Throwable
      Stop
      Throws:
      Throwable - If the unit cant be stopped
    • destroy

      public void destroy() throws Throwable
      Destroy
      Throws:
      Throwable - If the unit cant be stopped