|
||||||||||
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 ServletContextAware
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... 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 String[] getConfigurationResources()
ComponentManager
getConfigurationResources
in interface ComponentManager
public void setConfigurationResources(String[] configurationResources)
ComponentManager
setConfigurationResources
in interface ComponentManager
public 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.BeanPostProcessor
org.springframework.beans.BeansException
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessAfterInitialization
in interface org.springframework.beans.factory.config.BeanPostProcessor
org.springframework.beans.BeansException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |