|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hippoecm.hst.component.support.ClientComponentManager
public class ClientComponentManager
| Field Summary | |
|---|---|
protected org.springframework.context.support.AbstractRefreshableConfigApplicationContext |
applicationContext
|
protected org.apache.commons.configuration.Configuration |
configuration
|
protected String[] |
configurationResources
|
static String |
IGNORE_UNRESOLVABLE_PLACE_HOLDERS
|
protected javax.servlet.ServletContext |
servletContext
|
static String |
SYSTEM_PROPERTIES_MODE
|
| Constructor Summary | |
|---|---|
ClientComponentManager()
|
|
ClientComponentManager(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... contextNames)
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... 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. |
|
Object |
postProcessAfterInitialization(Object bean,
String beanName)
|
|
Object |
postProcessBeforeInitialization(Object bean,
String beanName)
|
|
void |
setConfigurationResources(String[] configurationResources)
Sets configuration resources for components assembly |
|
void |
setServletContext(javax.servlet.ServletContext servletContext)
Set the ServletContext that this object runs in. |
|
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
protected org.springframework.context.support.AbstractRefreshableConfigApplicationContext applicationContext
protected String[] configurationResources
protected org.apache.commons.configuration.Configuration configuration
protected javax.servlet.ServletContext servletContext
| Constructor Detail |
|---|
public ClientComponentManager()
public ClientComponentManager(org.apache.commons.configuration.Configuration configuration)
| Method Detail |
|---|
public void setServletContext(javax.servlet.ServletContext servletContext)
ServletContextAware
setServletContext in interface ServletContextAwarepublic 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... contextNames)
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... contextNames)
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 String[] getConfigurationResources()
ComponentManager
getConfigurationResources in interface ComponentManagerpublic void setConfigurationResources(String[] configurationResources)
ComponentManager
setConfigurationResources in interface ComponentManagerpublic ContainerConfiguration getContainerConfiguration()
ComponentManager
getContainerConfiguration in interface ComponentManager
public Object postProcessBeforeInitialization(Object bean,
String beanName)
throws org.springframework.beans.BeansException
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansException
public Object postProcessAfterInitialization(Object bean,
String beanName)
throws org.springframework.beans.BeansException
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||