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 Object
implements PropertyBackedBeanState
The Class ApplicationContextState.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedApplicationContextState(boolean allowInitAccess) Instantiates a new application context state. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(boolean permanent) Releases any resources held by this state.org.springframework.context.ApplicationContextGets the application context.org.springframework.context.ApplicationContextgetApplicationContext(boolean start) Gets the application context.getProperty(String name) Gets a property value.Gets the names of all properties.org.springframework.context.ApplicationContextGets the application context.voidremoveProperty(String name) Removes a property.voidsetProperty(String name, 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.
-
Constructor Details
-
ApplicationContextState
Instantiates a new application context state.- Throws:
IOException- Signals that an I/O exception has occurred.
-
-
Method Details
-
getPropertyNames
Description copied from interface:PropertyBackedBeanStateGets the names of all properties.- Specified by:
getPropertyNamesin interfacePropertyBackedBeanState- Returns:
- the property names
-
getProperty
Description copied from interface:PropertyBackedBeanStateGets a property value.- Specified by:
getPropertyin interfacePropertyBackedBeanState- Parameters:
name- the name- Returns:
- the property value
-
setProperty
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
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
-