protected class ChildApplicationContextFactory.ApplicationContextState extends java.lang.Object implements PropertyBackedBeanState
Modifier | Constructor and Description |
---|---|
protected |
ChildApplicationContextFactory.ApplicationContextState()
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.
|
java.lang.String |
getProperty(java.lang.String name)
Gets a property value.
|
java.util.Set |
getPropertyNames()
Gets the names of all properties.
|
void |
setProperty(java.lang.String name,
java.lang.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 ChildApplicationContextFactory.ApplicationContextState() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.public java.util.Set getPropertyNames()
PropertyBackedBeanState
getPropertyNames
in interface PropertyBackedBeanState
public java.lang.String getProperty(java.lang.String name)
PropertyBackedBeanState
getProperty
in interface PropertyBackedBeanState
name
- the namepublic void setProperty(java.lang.String name, java.lang.String value)
PropertyBackedBeanState
PropertyBackedBeanState.stop()
and should only be called for
property names for which the #isUpdateable(String)
method returns true
.setProperty
in interface PropertyBackedBeanState
name
- the property namevalue
- the property valuepublic 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 getApplicationContext()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.