|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.merlin.impl.DefaultKernel
Implementation of the default Merlin Kernel.
Field Summary |
Fields inherited from interface org.apache.avalon.merlin.Kernel |
ASSEMBLY, DECOMMISSIONING, DEPLOYMENT, DISSASSEMBLY, INITIALIZED, INITIALIZING, STARTED, STARTING, STOPPED, STOPPING |
Constructor Summary | |
DefaultKernel(KernelContext context)
Creation of a new Merlin Kernel. |
Method Summary | |
void |
addKernelEventListener(KernelEventListener listener)
Add a kernel listener. |
void |
dispose()
|
ContainmentModel |
getModel()
Return the root application block. |
int |
getState()
Return the current state of the kernel. |
DeploymentModel |
locate(String path)
Return a model matching the supplied path. |
void |
removeKernelEventListener(KernelEventListener listener)
Remove a kernel listener. |
void |
shutdown()
Shutdown the kernel during which orderly shutdown of all installed blocks is undertaken. |
void |
startup()
Initiate the establishment of the root container. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultKernel(KernelContext context) throws KernelException
context
- the creation context
KernelException
- if a kernel initialization error occursMethod Detail |
public int getState()
getState
in interface Kernel
public void addKernelEventListener(KernelEventListener listener)
addKernelEventListener
in interface Kernel
listener
- the kernel listener to be addedpublic void removeKernelEventListener(KernelEventListener listener)
removeKernelEventListener
in interface Kernel
listener
- the kernel listener to be removedpublic DeploymentModel locate(String path)
locate
in interface Kernel
public ContainmentModel getModel()
getModel
in interface Kernel
public void startup() throws Exception
startup
in interface KernelController
Exception
- if a startup error occurspublic void shutdown()
shutdown
in interface KernelController
public void dispose()
dispose
in interface Disposable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |