Package com.github.fungal.impl
Class BeanDeploymentImpl
java.lang.Object
com.github.fungal.impl.BeanDeploymentImpl
- All Implemented Interfaces:
BeanDeployment,Deployment
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 deploymentbeans- The list of bean names for the deploymentuninstall- Uninstall methods for beansstops- Stop methods for beansdestroys- Destroy methods for beansignoreStops- Ignore stop methods for beansignoreDestroys- Ignore destroy methods for beanskernel- The kernel
-
-
Method Details
-
getBeans
Get the bean names- Specified by:
getBeansin interfaceBeanDeployment- Returns:
- The values
-
getURL
Get the unique URL for the deployment- Specified by:
getURLin interfaceDeployment- Returns:
- The URL
-
getClassLoader
Get the classloader- Specified by:
getClassLoaderin interfaceDeployment- Returns:
- The classloader
-
stop
Stop- Throws:
Throwable- If the unit cant be stopped
-
destroy
Destroy- Throws:
Throwable- If the unit cant be stopped
-