com.gridsystems.innergrid.kernel.startup
Class KernelInitializer

java.lang.Object
  extended by com.gridsystems.innergrid.kernel.Kernel
      extended by com.gridsystems.innergrid.kernel.startup.KernelInitializer

public final class KernelInitializer
extends Kernel

Kernel Initialization support.

Version:
1.0
Author:
Rodrigo Ruiz

Field Summary
 
Fields inherited from class com.gridsystems.innergrid.kernel.Kernel
aas, kernelVersion, listenerList, manager, registry, timer
 
Method Summary
static void dispose()
          Resource clean up.
static void registerPlugins(PluginFactory factory)
          Registers all plug-ins the factory has found out.
static void setup(javax.servlet.ServletContext ctx)
          Initializes the Kernel framework.
 
Methods inherited from class com.gridsystems.innergrid.kernel.Kernel
addKernelListener, addPreWSSFilter, clearListeners, getApiRegistry, getDefaultAAS, getPluginManager, getTimer, getVersion, notifyShutdown, notifyStartup, removeKernelListener, removePreWSSFilter, retrieveKernelVersion, setDefaultAAS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setup

public static void setup(javax.servlet.ServletContext ctx)
Initializes the Kernel framework.

Parameters:
ctx - The servlet context into which the Kernel is being execution

registerPlugins

public static void registerPlugins(PluginFactory factory)
Registers all plug-ins the factory has found out.

It first adds all of them to the plugin manager. After that, it filters them by their dependencies, removing all plug-ins whose dependencies are not available. Finally, it registers them as KernelListeners in such an orded that a plugin will always be notified of startup events after all its dependencies.

Parameters:
factory - The factory containing the plug-in list

dispose

public static void dispose()
Resource clean up.



Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.