|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentManager
ComponentManager interface. This is responsible for initializing, starting, stopping and closing container components.
Method Summary | ||
---|---|---|
void |
close()
Closes the component manager and all the components. |
|
|
getComponent(String name)
Returns the registered container component by name. |
|
|
getComponent(String name,
String... addonModuleNames)
Returns the registered component from a child context. |
|
|
getComponentsOfType(Class<T> requiredType)
Returns the registered container components that match the given object type (including subclasses). |
|
|
getComponentsOfType(Class<T> requiredType,
String... addonModuleNames)
Returns the registered container component that match the given object type (including subclasses) from a child context. |
|
String[] |
getConfigurationResources()
Returns configuration resources for components assembly |
|
ContainerConfiguration |
getContainerConfiguration()
Returns the container configuration |
|
void |
initialize()
Initializes the component manager and container components. |
|
void |
setConfigurationResources(String[] configurationResources)
Sets configuration resources for components assembly |
|
void |
start()
Starts the component manager to serve container components. |
|
void |
stop()
Stop the component manager. |
Method Detail |
---|
void setConfigurationResources(String[] configurationResources)
configurationResources
- String[] getConfigurationResources()
configurationResource
- void initialize()
void start()
<T> T getComponent(String name)
T
- component typename
- the name of the component
<T> Map<String,T> getComponentsOfType(Class<T> requiredType)
T
- component typerequiredType
- the required type of the component
<T> T getComponent(String name, String... addonModuleNames)
addonModuleNames
consists of multiple items, then
each addonModuleNames
item is regarded as child addon module name
in the descendant hierarchy, as ordered.
Returns null if a component is not found by the specified name.
T
- name
- contextNames
-
ModuleNotFoundException
- thrown when module is not found by the addonModuleNames<T> Map<String,T> getComponentsOfType(Class<T> requiredType, String... addonModuleNames)
addonModuleNames
consists of multiple items, then
each addonModuleNames
item is regarded as child addon module name
in the descendant hierarchy, as ordered.
Returns empty map if a component is not found by the specified type.
T
- requiredType
- contextNames
-
ModuleNotFoundException
- thrown when module is not found by the addonModuleNamesvoid stop()
void close()
ContainerConfiguration getContainerConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |