org.apache.geronimo.kernel
Class KernelRegistry
java.lang.Object
org.apache.geronimo.kernel.KernelRegistry
public final class KernelRegistry
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KernelRegistry
public KernelRegistry()
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 © 2006 Apache Software Foundation. All Rights Reserved.