org.jboss.kernel.plugins.bootstrap.basic
Class BasicKernelInitializer

java.lang.Object
  extended by org.jboss.kernel.plugins.bootstrap.AbstractKernelInitializer
      extended by org.jboss.kernel.plugins.bootstrap.basic.BasicKernelInitializer
All Implemented Interfaces:
KernelInitializer

public class BasicKernelInitializer
extends AbstractKernelInitializer

Bootstrap the kernel.

Version:
$Revision: 90317 $
Author:
Adrian Brock, Ales Justin

Field Summary
 
Fields inherited from class org.jboss.kernel.plugins.bootstrap.AbstractKernelInitializer
log, trace
 
Constructor Summary
BasicKernelInitializer()
          Create a new basic kernel factory
 
Method Summary
protected  KernelBeanValidator createKernelBeanValidator(Kernel kernel)
          Create the bean validator
protected  KernelBus createKernelBus(Kernel kernel)
          Create the kernel bus
protected  KernelConfigurator createKernelConfigurator(Kernel kernel)
          Create the configurator
protected  KernelController createKernelController(Kernel kernel)
          Create the kernel controller
protected  KernelEventManager createKernelEventManager(Kernel kernel)
          Create the kernel event manager
protected  KernelMetaDataRepository createKernelMetaDataRepository(Kernel kernel)
          Create the meta data repository
protected  KernelRegistry createKernelRegistry(Kernel kernel)
          Create the kernel registry
protected  KernelRegistryEntry createKernelRegistryEntry(Kernel kernel, Object object)
          Create a kernel registry entry
protected  Object getName(String name)
          Get the registration name
 void initKernel(Kernel kernel)
          Initialise a kernel
protected  void register(Kernel kernel, Object name, Object object)
          Register an object
protected  void register(Kernel kernel, String name, Object object)
          Register an object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicKernelInitializer

public BasicKernelInitializer()
                       throws Exception
Create a new basic kernel factory

Throws:
Exception - for any error
Method Detail

initKernel

public void initKernel(Kernel kernel)
                throws Throwable
Description copied from interface: KernelInitializer
Initialise a kernel

Parameters:
kernel - the kernel
Throws:
Throwable - for any error

createKernelBus

protected KernelBus createKernelBus(Kernel kernel)
                             throws Throwable
Create the kernel bus

Parameters:
kernel - the kernel
Returns:
the kernel bus
Throws:
Throwable - for any error

createKernelConfigurator

protected KernelConfigurator createKernelConfigurator(Kernel kernel)
                                               throws Throwable
Create the configurator

Parameters:
kernel - the kernel
Returns:
the configurator
Throws:
Throwable - for any error

createKernelController

protected KernelController createKernelController(Kernel kernel)
                                           throws Throwable
Create the kernel controller

Parameters:
kernel - the kernel
Returns:
the kernel controller
Throws:
Throwable - for any error

createKernelEventManager

protected KernelEventManager createKernelEventManager(Kernel kernel)
                                               throws Throwable
Create the kernel event manager

Parameters:
kernel - the kernel
Returns:
the kernel event manager
Throws:
Throwable - for any error

createKernelRegistry

protected KernelRegistry createKernelRegistry(Kernel kernel)
                                       throws Throwable
Create the kernel registry

Parameters:
kernel - the kernel
Returns:
the kernel registry
Throws:
Throwable - for any error

createKernelMetaDataRepository

protected KernelMetaDataRepository createKernelMetaDataRepository(Kernel kernel)
                                                           throws Throwable
Create the meta data repository

Parameters:
kernel - the kernel
Returns:
the meta data repository
Throws:
Throwable - for any error

createKernelBeanValidator

protected KernelBeanValidator createKernelBeanValidator(Kernel kernel)
                                                 throws Throwable
Create the bean validator

Parameters:
kernel - the kernel
Returns:
the bean validator
Throws:
Throwable - for any error

register

protected void register(Kernel kernel,
                        String name,
                        Object object)
                 throws Throwable
Register an object

Parameters:
kernel - the kernel
name - the name
object - the object
Throws:
Throwable - for any error

register

protected void register(Kernel kernel,
                        Object name,
                        Object object)
                 throws Throwable
Register an object

Parameters:
kernel - the kernel
name - the name
object - the object
Throws:
Throwable - for any error

getName

protected Object getName(String name)
                  throws Throwable
Get the registration name

Parameters:
name - the name
Returns:
the registration name
Throws:
Throwable - for any error

createKernelRegistryEntry

protected KernelRegistryEntry createKernelRegistryEntry(Kernel kernel,
                                                        Object object)
                                                 throws Throwable
Create a kernel registry entry

Parameters:
kernel - the kernel
object - the object
Returns:
the entry
Throws:
Throwable - for any error


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.