|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hippoecm.hst.site.container.SpringComponentManager
public class SpringComponentManager
SpringComponentManager
| Field Summary | |
|---|---|
protected org.springframework.context.support.AbstractRefreshableConfigApplicationContext |
applicationContext
|
static String |
BEAN_REGISTER_CONDITION
|
protected org.apache.commons.configuration.Configuration |
configuration
|
protected String[] |
configurationResources
|
protected ContainerConfiguration |
containerConfiguration
|
static String |
IGNORE_UNRESOLVABLE_PLACE_HOLDERS
|
static String |
SYSTEM_PROPERTIES_MODE
|
| Constructor Summary | |
|---|---|
SpringComponentManager()
|
|
SpringComponentManager(org.apache.commons.configuration.Configuration configuration)
|
|
| 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 |
setAddonModuleDefinitions(List<ModuleDefinition> addonModuleDefinitions)
|
|
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 |
|---|
public static final String IGNORE_UNRESOLVABLE_PLACE_HOLDERS
public static final String SYSTEM_PROPERTIES_MODE
public static final String BEAN_REGISTER_CONDITION
protected org.springframework.context.support.AbstractRefreshableConfigApplicationContext applicationContext
protected org.apache.commons.configuration.Configuration configuration
protected ContainerConfiguration containerConfiguration
protected String[] configurationResources
| Constructor Detail |
|---|
public SpringComponentManager()
public SpringComponentManager(org.apache.commons.configuration.Configuration configuration)
| Method Detail |
|---|
public void initialize()
ComponentManager
initialize in interface ComponentManagerpublic void start()
ComponentManager
start in interface ComponentManagerpublic void stop()
ComponentManager
stop in interface ComponentManagerpublic void close()
ComponentManager
close in interface ComponentManagerpublic <T> T getComponent(String name)
ComponentManager
getComponent in interface ComponentManagerT - component typename - the name of the component
public <T> T getComponent(String name,
String... addonModuleNames)
ComponentManageraddonModuleNames 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 ComponentManagerpublic <T> Map<String,T> getComponentsOfType(Class<T> requiredType)
ComponentManager
getComponentsOfType in interface ComponentManagerT - component typerequiredType - the required type of the component
public <T> Map<String,T> getComponentsOfType(Class<T> requiredType,
String... addonModuleNames)
ComponentManageraddonModuleNames 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 ComponentManagerpublic ContainerConfiguration getContainerConfiguration()
ComponentManager
getContainerConfiguration in interface ComponentManagerpublic String[] getConfigurationResources()
ComponentManager
getConfigurationResources in interface ComponentManagerpublic void setConfigurationResources(String[] configurationResources)
ComponentManager
setConfigurationResources in interface ComponentManagerpublic void setAddonModuleDefinitions(List<ModuleDefinition> addonModuleDefinitions)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||