Class ChildApplicationContextFactory.ApplicationContextState
- java.lang.Object
-
- org.alfresco.repo.management.subsystems.ChildApplicationContextFactory.ApplicationContextState
-
- All Implemented Interfaces:
PropertyBackedBeanState
- Enclosing class:
- ChildApplicationContextFactory
protected class ChildApplicationContextFactory.ApplicationContextState extends java.lang.Object implements PropertyBackedBeanState
The Class ApplicationContextState.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedApplicationContextState(boolean allowInitAccess)Instantiates a new application context state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy(boolean permanent)Releases any resources held by this state.org.springframework.context.ApplicationContextgetApplicationContext()Gets the application context.org.springframework.context.ApplicationContextgetApplicationContext(boolean start)Gets the application context.java.lang.StringgetProperty(java.lang.String name)Gets a property value.java.util.Set<java.lang.String>getPropertyNames()Gets the names of all properties.org.springframework.context.ApplicationContextgetReadOnlyApplicationContext()Gets the application context.voidremoveProperty(java.lang.String name)Removes a property.voidsetProperty(java.lang.String name, java.lang.String value)Sets the value of a property.voidstart()Starts up the component, using its new property values.voidstop()Stops the component, so that its property values can be changed.
-
-
-
Method Detail
-
getPropertyNames
public java.util.Set<java.lang.String> getPropertyNames()
Description copied from interface:PropertyBackedBeanStateGets the names of all properties.- Specified by:
getPropertyNamesin interfacePropertyBackedBeanState- Returns:
- the property names
-
getProperty
public java.lang.String getProperty(java.lang.String name)
Description copied from interface:PropertyBackedBeanStateGets a property value.- Specified by:
getPropertyin interfacePropertyBackedBeanState- Parameters:
name- the name- Returns:
- the property value
-
setProperty
public void setProperty(java.lang.String name, java.lang.String value)Description copied from interface:PropertyBackedBeanStateSets the value of a property. This may only be called afterPropertyBackedBeanState.stop().- Specified by:
setPropertyin interfacePropertyBackedBeanState- Parameters:
name- the property namevalue- the property value
-
removeProperty
public void removeProperty(java.lang.String name)
Description copied from interface:PropertyBackedBeanStateRemoves a property. This may only be called afterPropertyBackedBeanState.stop().- Specified by:
removePropertyin interfacePropertyBackedBeanState- Parameters:
name- the property name
-
start
public void start()
Description copied from interface:PropertyBackedBeanStateStarts up the component, using its new property values.- Specified by:
startin interfacePropertyBackedBeanState
-
stop
public void stop()
Description copied from interface:PropertyBackedBeanStateStops the component, so that its property values can be changed.- Specified by:
stopin interfacePropertyBackedBeanState
-
destroy
public void destroy(boolean permanent)
Releases any resources held by this state.- Parameters:
permanent- is the state being destroyed forever, i.e. should persisted values be removed? On server shutdown, this value would befalse, whereas on the removal of a dynamically created instance, this value would betrue.
-
getReadOnlyApplicationContext
public org.springframework.context.ApplicationContext getReadOnlyApplicationContext()
Gets the application context. Will not start a subsystem.- Returns:
- the application context or null
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
Gets the application context.- Returns:
- the application context
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext(boolean start)
Gets the application context.- Parameters:
start- indicates whether state should be started- Returns:
- the application context or
nullif state was not already started and start == false
-
-