|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xbean.server.main.KernelMain
public class 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()
|
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. |
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(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(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(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 ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
classLoader - the class loader to use as the thread context class loader during the main methodpublic Map getServices()
public void setServices(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(String[] args)
main in interface Mainargs - the arguments passed the next mainpublic void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||