|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.kernel.KernelFactory
A KernelFactory
is an implementation of the Factory
design pattern that can construct new instances of Kernel
objects.
If no KernelConfig
is given to the KernelFactory
,
the KernelFactory
will attempt to construct a
KernelConfig
object by using System properties
(i.e. System.getProperties()
).
Field Summary | |
protected org.jboss.logging.Logger |
log
|
Method Summary | |
protected Kernel |
assembleNewKernel(KernelConfig cfg)
Instantiates, configures, and initializes a new Kernel
instance according to the specified KernelConfig parameter. |
protected void |
configureKernel(Kernel kernel,
KernelConfig cfg)
Configures the specified Kernel according to the specified KernelConfig parameter. |
protected Kernel |
createKernel()
Constructs and returns a new, unconfigured, uninitialized Kernel instance. |
protected KernelInitializer |
createKernelInitializer(KernelConfig config)
Constructs a KernelInitializer based on the
specified KernelConfig parameter. |
protected void |
initializeKernel(Kernel kernel,
KernelInitializer initializer)
Initializes the specified Kernel according to the specified KernelInitializer parameter. |
static Kernel |
newInstance(KernelConfig cfg)
Returns a new instance of a Kernel based on the specified KernelConfig parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final org.jboss.logging.Logger log
Method Detail |
public static Kernel newInstance(KernelConfig cfg)
KernelConfig
parameter.
cfg
- the configuration used to construct a new
Kernel
object.
Kernel
instance constructed according to the
specified configuration.protected Kernel assembleNewKernel(KernelConfig cfg) throws RuntimeException
Kernel
instance according to the specified KernelConfig
parameter.
cfg
- the KernelConfig that will be used in constructing a new
Kernel.
KernelConfig
parameter.
RuntimeException
protected Kernel createKernel()
Kernel
instance. Configuration and initialization will be
done explicitly in the construction process via the
configureKernel
and
initializeKernel
methods, respectively.
Kernel
instance.protected KernelInitializer createKernelInitializer(KernelConfig config)
KernelInitializer
based on the
specified KernelConfig
parameter. This initializer
is used in the
initializeKernel
method during Kernel construction.
config
- the configuration with which to construct a new
KernelInitializer
instance.
KernelInitializer
instance based on the
specified KernelConfig
.
RuntimeException
- if the config
object
cannot properly construct a new KernelInitializer
protected void configureKernel(Kernel kernel, KernelConfig cfg)
KernelConfig
parameter.
kernel
- a new, unconfigured Kernel
instance.cfg
- the KernelConfig
to use to configure the
specified Kernel
parameter.
RuntimeException
- if the KernelConfig
cannot be
updated with the Kernel object.protected void initializeKernel(Kernel kernel, KernelInitializer initializer)
KernelInitializer
parameter.
kernel
- a new, uninitialized Kernel
instance.initializer
- the KernelInitializer
to use to
initialize the specified Kernel
parameter.
RuntimeException
- if the KernelInitializer
cannot
initialize the given Kernel
parameter.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |