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()
PropertyBackedBeanState
getPropertyNames
in interface PropertyBackedBeanState
public String getProperty(String name)
PropertyBackedBeanState
getProperty
in interface PropertyBackedBeanState
name
- the namepublic void setProperty(String name, String value)
PropertyBackedBeanState
PropertyBackedBeanState.stop()
.setProperty
in interface PropertyBackedBeanState
name
- the property namevalue
- the property valuepublic void removeProperty(String name)
PropertyBackedBeanState
PropertyBackedBeanState.stop()
.removeProperty
in interface PropertyBackedBeanState
name
- the property namepublic void start()
PropertyBackedBeanState
start
in interface PropertyBackedBeanState
public void stop()
PropertyBackedBeanState
stop
in interface PropertyBackedBeanState
public 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–2017 Alfresco Software. All rights reserved.