|
||||||||||
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 ComponentManager
public void start()
ComponentManager
start
in interface ComponentManager
public void stop()
ComponentManager
stop
in interface ComponentManager
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... addonModuleNames)
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... addonModuleNames)
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 String[] getConfigurationResources()
ComponentManager
getConfigurationResources
in interface ComponentManager
public void setConfigurationResources(String[] configurationResources)
ComponentManager
setConfigurationResources
in interface ComponentManager
public void setAddonModuleDefinitions(List<ModuleDefinition> addonModuleDefinitions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |