|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KernelController
A controller.
The controller is the core component for keeping track of beans to make sure the configuration and lifecycle are done in the correct order including dependencies and classloading considerations.
Method Summary | |
---|---|
void |
addInstantiatedContext(KernelControllerContext context)
Add instantiated context into contextsByClass map look at all target's superclasses and interfaces |
void |
addSupplies(KernelControllerContext context)
Add supplies |
KernelControllerContext |
getContextByClass(Class<?> clazz)
If zero or multiple instances match class clazz a warning is issued, but no throwable is thrown |
Set<KernelControllerContext> |
getContexts(Class<?> clazz,
ControllerState state)
Get all contexts of a type which are at least in state. |
Set<KernelControllerContext> |
getInstantiatedContexts(Class<?> clazz)
Get all instantiated contexts of a type |
KernelControllerContext |
install(BeanMetaData metaData)
Install a context |
KernelControllerContext |
install(BeanMetaData metaData,
Object target)
Install a context |
void |
removeInstantiatedContext(KernelControllerContext context)
Remove instantiated context from contextsByClass map look at all target's superclasses and interfaces |
void |
removeSupplies(KernelControllerContext context)
Remove supplies |
Methods inherited from interface org.jboss.kernel.spi.KernelObject |
---|
getKernel, setKernel |
Methods inherited from interface org.jboss.kernel.spi.event.KernelEventEmitter |
---|
fireKernelEvent, registerListener, unregisterListener |
Methods inherited from interface org.jboss.dependency.spi.Controller |
---|
addAlias, addState, change, enableOnDemand, getContext, getContextsByState, getInstalledContext, getNotInstalled, getStates, install, isShutdown, removeAlias, shutdown, uninstall |
Methods inherited from interface org.jboss.util.JBossInterface |
---|
clone, toShortString, toShortString |
Method Detail |
---|
KernelControllerContext install(BeanMetaData metaData) throws Throwable
metaData
- the metaData
Throwable
- for any errorKernelControllerContext install(BeanMetaData metaData, Object target) throws Throwable
metaData
- the metaDatatarget
- the target object
Throwable
- for any errorvoid addSupplies(KernelControllerContext context)
context
- the contextvoid removeSupplies(KernelControllerContext context)
context
- the contextSet<KernelControllerContext> getInstantiatedContexts(Class<?> clazz)
clazz
- the type
Set<KernelControllerContext> getContexts(Class<?> clazz, ControllerState state)
clazz
- the typestate
- the required state
KernelControllerContext getContextByClass(Class<?> clazz)
clazz
- the type
void addInstantiatedContext(KernelControllerContext context)
context
- the contextvoid removeInstantiatedContext(KernelControllerContext context)
context
- the context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |