|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.server.main.KernelMain
KernelMain is the standard entry point class used for a server. It will initalize a kernel with a set of services and can optional hold the thread of execution until the kernel or virtual machine is destroyed.
Constructor Summary | |
KernelMain()
|
Method Summary | |
void |
destroy()
|
java.lang.ClassLoader |
getClassLoader()
Gets the class loader which is used as the thread context class loader during the main method. |
org.apache.xbean.kernel.Kernel |
getKernel()
Gets the kernel that will be initialized in the main method. |
Main |
getNext()
Gets the next main to call after the kernel has been initialized, but before destroying the kernel. |
java.util.Map |
getServices()
Gets the services to be registered with the kernel during the main method. |
boolean |
isDaemon()
Determines if the main method should hold the thread until the kernel is destroyed. |
void |
main(java.lang.String[] args)
Registers the services with the kernel, calls the next main, optionally holds the thread until the kernel is destroyed, and then destroys the kernel. |
void |
setClassLoader(java.lang.ClassLoader classLoader)
Sets the class loader to use as the thread context class loader during the main method. |
void |
setDaemon(boolean daemon)
Sets the main method to hold the thread until the kernel is destroyed. |
void |
setKernel(org.apache.xbean.kernel.Kernel kernel)
Sets the kernel to be initialized in the main method. |
void |
setNext(Main next)
Sets the next main to call after the kernel has been initialized. |
void |
setServices(java.util.Map services)
Sets the services to be registered with the kernel during the main method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public KernelMain()
Method Detail |
public org.apache.xbean.kernel.Kernel getKernel()
public void setKernel(org.apache.xbean.kernel.Kernel kernel)
kernel
- the kernel to initialize in the main methodpublic java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
classLoader
- the class loader to use as the thread context class loader during the main methodpublic java.util.Map getServices()
public void setServices(java.util.Map services)
services
- the services to be registered with the kernel during the main methodpublic boolean isDaemon()
public void setDaemon(boolean daemon)
daemon
- true if the main method should hold the thread until the kernel is destroyedpublic Main getNext()
public void setNext(Main next)
next
- the next main to call after the kernel has been initializedpublic void main(java.lang.String[] args)
main
in interface Main
args
- the arguments passed the next mainpublic void destroy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |