|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.management.subsystems.AbstractPropertyBackedBean
org.alfresco.repo.management.subsystems.DefaultChildApplicationContextManager
public class DefaultChildApplicationContextManager
A default ChildApplicationContextManager implementation that manages a 'chain' of
ChildApplicationContextFactory objects, perhaps corresponding to the components of a chained subsystem such
as authentication. As with other PropertyBackedBeans, can be stopped, reconfigured, started and tested. Its
one special chain property allows an ordered list of ChildApplicationContextFactory objects to
be managed. This property is a comma separated list with the format:
ChildApplicationContextManager for the meanings of <id> and <typeName>. In the enterprise edition,
this property is editable at runtime via JMX. If a new <id> is included in the list then a new
ChildApplicationContextFactory will be brought into existence. Similarly, if one is removed from the list,
then the corresponding instance will be destroyed. For Alfresco community edition, the chain is best configured
through the #setChain(String) method via Spring configuration.
| Nested Class Summary | |
|---|---|
protected class |
DefaultChildApplicationContextManager.ApplicationContextManagerState
The Class ApplicationContextManagerState. |
| Nested classes/interfaces inherited from class org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean |
|---|
AbstractPropertyBackedBean.DefaultResolver |
| Field Summary |
|---|
| Fields inherited from class org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean |
|---|
DEFAULT_INSTANCE_NAME |
| Constructor Summary | |
|---|---|
DefaultChildApplicationContextManager()
Instantiates a new default child application context manager. |
|
| Method Summary | |
|---|---|
protected PropertyBackedBeanState |
createInitialState()
Creates the initial state. |
void |
destroy(boolean permanent)
Releases any resources held by this component. |
org.springframework.context.ApplicationContext |
getApplicationContext(java.lang.String id)
Gets the application context with the given identifier. |
java.lang.String |
getDescription(java.lang.String name)
Gets a Human readable description of the property, e.g. |
java.util.Collection |
getInstanceIds()
Gets the ordered collection of identifiers, indicating the ordering of the chain. |
void |
setDefaultChain(java.lang.String defaultChain)
Configures the default chain of ChildApplicationContextFactory instances. |
void |
setDefaultTypeName(java.lang.String defaultTypeName)
Sets the default type name. |
| Methods inherited from class org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean |
|---|
afterPropertiesSet, applyDefaultOverrides, destroy, getCategory, getId, getInstancePath, getParent, getProperty, getPropertyDefaults, getPropertyNames, getRegistry, getState, init, isUpdateable, onApplicationEvent, resolveDefault, revert, setApplicationContext, setAutoStart, setBeanName, setCategory, setInstancePath, setProperty, setPropertyDefaults, setRegistry, start, start, stop, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultChildApplicationContextManager()
| Method Detail |
|---|
public void setDefaultTypeName(java.lang.String defaultTypeName)
defaultTypeName - the new default type namepublic void setDefaultChain(java.lang.String defaultChain)
ChildApplicationContextFactory instances. May be set on initialization by
the Spring container.
defaultChain - a comma separated list in the following format:
public java.lang.String getDescription(java.lang.String name)
AbstractPropertyBackedBean
getDescription in interface PropertyBackedBeangetDescription in class AbstractPropertyBackedBeanname - the name
public void destroy(boolean permanent)
AbstractPropertyBackedBean
destroy in class AbstractPropertyBackedBeanpermanent - is the component being destroyed forever, i.e. should persisted values be removed? On server shutdown,
this value would be false, whereas on the removal of a dynamically created instance, this
value would be true.
protected PropertyBackedBeanState createInitialState()
throws java.io.IOException
AbstractPropertyBackedBean
createInitialState in class AbstractPropertyBackedBeanjava.io.IOException - Signals that an I/O exception has occurred.public java.util.Collection getInstanceIds()
ChildApplicationContextManager
getInstanceIds in interface ChildApplicationContextManagerpublic org.springframework.context.ApplicationContext getApplicationContext(java.lang.String id)
ChildApplicationContextManager
getApplicationContext in interface ChildApplicationContextManagerid - the identifier of the application context to retrieve
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||