|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hippoecm.hst.site.container.ComponentManagerFacade
public class ComponentManagerFacade
ComponentManagerFacade
Field Summary | |
---|---|
protected ComponentManager |
componentManager
|
Constructor Summary | |
---|---|
ComponentManagerFacade()
|
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... contextNames)
Returns the registered component from a child context. |
|
ComponentManager |
getComponentManager()
|
|
|
getComponentsOfType(Class<T> requiredType)
Returns the registered container components that match the given object type (including subclasses). |
|
|
getComponentsOfType(Class<T> requiredType,
String... contextNames)
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 |
setComponentManager(ComponentManager componentManager)
Sets the component manager |
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ComponentManager componentManager
Constructor Detail |
---|
public ComponentManagerFacade()
Method Detail |
---|
public void setComponentManager(ComponentManager componentManager)
ComponentManagerAware
setComponentManager
in interface ComponentManagerAware
public ComponentManager getComponentManager()
public void close()
ComponentManager
close
in interface ComponentManager
public <T> T getComponent(String name)
ComponentManager
getComponent
in interface ComponentManager
T
- component typename
- the name of the component
public <T> T getComponent(String name, String... contextNames)
ComponentManager
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.
getComponent
in interface ComponentManager
public <T> Map<String,T> getComponentsOfType(Class<T> requiredType)
ComponentManager
getComponentsOfType
in interface ComponentManager
T
- component typerequiredType
- the required type of the component
public <T> Map<String,T> getComponentsOfType(Class<T> requiredType, String... contextNames)
ComponentManager
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.
getComponentsOfType
in interface ComponentManager
public ContainerConfiguration getContainerConfiguration()
ComponentManager
getContainerConfiguration
in interface ComponentManager
public void initialize()
ComponentManager
initialize
in interface ComponentManager
public void start()
ComponentManager
start
in interface ComponentManager
public void stop()
ComponentManager
stop
in interface ComponentManager
public void setConfigurationResources(String[] configurationResources)
ComponentManager
setConfigurationResources
in interface ComponentManager
public String[] getConfigurationResources()
ComponentManager
getConfigurationResources
in interface ComponentManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |