org.apache.geronimo.kernel
Class KernelRegistry

java.lang.Object
  extended by org.apache.geronimo.kernel.KernelRegistry

public final class KernelRegistry
extends Object


Constructor Summary
KernelRegistry()
           
 
Method Summary
static Kernel getKernel(String name)
          Get a particular kernel indexed by a name
static Set getKernelNames()
           
static Kernel getSingleKernel()
          Obtain the single kernel that's registered.
static void registerKernel(Kernel kernel)
           
static void unregisterKernel(Kernel kernel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KernelRegistry

public KernelRegistry()
Method Detail

getKernelNames

public static Set getKernelNames()

getKernel

public static Kernel getKernel(String name)
Get a particular kernel indexed by a name

Parameters:
name - the name of the kernel to be obtained
Returns:
the kernel that was registered with that name

getSingleKernel

public static Kernel getSingleKernel()
Obtain the single kernel that's registered.

This method assumes that there is only one kernel registered and will throw an IllegalStateException if more than one has been registered.

Returns:
the single kernel that's registered
Throws:
IllegalStateException - if more than one

registerKernel

public static void registerKernel(Kernel kernel)

unregisterKernel

public static void unregisterKernel(Kernel kernel)


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.