Package com.github.fungal.impl
Class KernelImpl
java.lang.Object
com.github.fungal.impl.KernelImpl
- All Implemented Interfaces:
Kernel,KernelImplMBean
The kernel implementation for Fungal
- Author:
- Jesper Pedersen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondump()Dump the bean informationDump the bean informationGet a bean<T> TGet a beanGet the deploymentsgetDeployments(URL url) Get the deployment units for a deploymentGet the executor serviceGet the hot deployerGet the kernel class loaderGet the main deployerGet the MBeanServer for the kernelgetName()Get the name of the kernelGet the version of the kernelInstall beansvoidshutdown()Shutdownvoidstartup()Startupvoiduninstall(BeanDeployment beans) Uninstall beans
-
Constructor Details
-
KernelImpl
Constructor- Parameters:
kc- The kernel configuration
-
-
Method Details
-
getName
Get the name of the kernel- Specified by:
getNamein interfaceKernel- Specified by:
getNamein interfaceKernelImplMBean- Returns:
- The value
-
getVersion
Get the version of the kernel- Specified by:
getVersionin interfaceKernel- Specified by:
getVersionin interfaceKernelImplMBean- Returns:
- The value
-
getMBeanServer
Get the MBeanServer for the kernel- Specified by:
getMBeanServerin interfaceKernel- Returns:
- The MBeanServer instance
-
getDeployments
Get the deployments- Specified by:
getDeploymentsin interfaceKernel- Returns:
- The deployment units;
nullif no units is found
-
getDeployments
Get the deployment units for a deployment- Specified by:
getDeploymentsin interfaceKernel- Parameters:
url- The unique URL for a deployment- Returns:
- The deployment units;
nullif no units is found
-
startup
Startup -
shutdown
Shutdown -
getKernelClassLoader
Get the kernel class loader- Specified by:
getKernelClassLoaderin interfaceKernel- Returns:
- The class loader
-
getExecutorService
Get the executor service- Returns:
- The executor service
-
getBean
Get a bean -
install
Install beans -
uninstall
Uninstall beans -
getBean
Get a bean- Parameters:
name- The name of the bean- Returns:
- The bean
-
getMainDeployer
Get the main deployer- Specified by:
getMainDeployerin interfaceKernel- Returns:
- The main deployer
-
getHotDeployer
Get the hot deployer- Returns:
- The hot deployer
-
dump
Dump the bean information- Specified by:
dumpin interfaceKernelImplMBean- Returns:
- The information
-
dump
Dump the bean information- Specified by:
dumpin interfaceKernelImplMBean- Parameters:
name- The bean name- Returns:
- The information
-