protected class ChildApplicationContextFactory.ApplicationContextState extends Object implements PropertyBackedBeanState
| Modifier | Constructor and Description |
|---|---|
protected |
ApplicationContextState(boolean allowInitAccess)
Instantiates a new application context state.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(boolean permanent)
Releases any resources held by this state.
|
org.springframework.context.ApplicationContext |
getApplicationContext()
Gets the application context.
|
org.springframework.context.ApplicationContext |
getApplicationContext(boolean start)
Gets the application context.
|
String |
getProperty(String name)
Gets a property value.
|
Set<String> |
getPropertyNames()
Gets the names of all properties.
|
org.springframework.context.ApplicationContext |
getReadOnlyApplicationContext()
Gets the application context.
|
void |
removeProperty(String name)
Removes a property.
|
void |
setProperty(String name,
String value)
Sets the value of a property.
|
void |
start()
Starts up the component, using its new property values.
|
void |
stop()
Stops the component, so that its property values can be changed.
|
protected ApplicationContextState(boolean allowInitAccess)
throws IOException
IOException - Signals that an I/O exception has occurred.public Set<String> getPropertyNames()
PropertyBackedBeanStategetPropertyNames in interface PropertyBackedBeanStatepublic String getProperty(String name)
PropertyBackedBeanStategetProperty in interface PropertyBackedBeanStatename - the namepublic void setProperty(String name, String value)
PropertyBackedBeanStatePropertyBackedBeanState.stop().setProperty in interface PropertyBackedBeanStatename - the property namevalue - the property valuepublic void removeProperty(String name)
PropertyBackedBeanStatePropertyBackedBeanState.stop().removeProperty in interface PropertyBackedBeanStatename - the property namepublic void start()
PropertyBackedBeanStatestart in interface PropertyBackedBeanStatepublic void stop()
PropertyBackedBeanStatestop in interface PropertyBackedBeanStatepublic void destroy(boolean permanent)
permanent - is the state 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.public org.springframework.context.ApplicationContext getReadOnlyApplicationContext()
public org.springframework.context.ApplicationContext getApplicationContext()
public org.springframework.context.ApplicationContext getApplicationContext(boolean start)
start - indicates whether state should be startednull if state was not already started and start == falseCopyright © 2005–2018 Alfresco Software. All rights reserved.