Interface Kernel

All Known Implementing Classes:
KernelImpl

public interface Kernel
The kernel API
Author:
Jesper Pedersen
See Also:
  • Method Details

    • getName

      String getName()
      Get the name of the kernel
      Returns:
      The value
    • getVersion

      String getVersion()
      Get the version of the kernel
      Returns:
      The value
    • getMBeanServer

      MBeanServer getMBeanServer()
      Get the MBeanServer for the kernel
      Returns:
      The MBeanServer instance
    • getMainDeployer

      MainDeployer getMainDeployer()
      Get the MainDeployer for the kernel
      Returns:
      The MainDeployer instance
    • getKernelClassLoader

      KernelClassLoader getKernelClassLoader()
      Get the kernel class loader
      Returns:
      The class loader
    • getDeployments

      Collection<Deployment> getDeployments()
      Get the deployments
      Returns:
      The deployment units; null if no units is found
    • getDeployments

      List<Deployment> getDeployments(URL deployment)
      Get the deployment units for a deployment
      Parameters:
      deployment - The unique URL for a deployment
      Returns:
      The deployment units; null if no units is found
    • getBean

      <T> T getBean(String name, Class<T> expectedType) throws Throwable
      Get a bean
      Parameters:
      name - The bean name
      expectedType - The expected type for the bean
      Returns:
      The bean instance
      Throws:
      Throwable - If an error occurs
    • install

      BeanDeployment install(Bean... beans) throws Throwable
      Install beans
      Parameters:
      beans - The beans
      Returns:
      The deployment that represents the beans
      Throws:
      Throwable - If an error occurs
    • uninstall

      void uninstall(BeanDeployment beans) throws Throwable
      Uninstall beans
      Parameters:
      beans - The bean deployment
      Throws:
      Throwable - If an error occurs
    • startup

      void startup() throws Throwable
      Startup
      Throws:
      Throwable - Thrown if an error occurs
    • shutdown

      void shutdown() throws Throwable
      Shutdown
      Throws:
      Throwable - Thrown if an error occurs