protected class SwitchableApplicationContextFactory.SwitchableState extends Object implements PropertyBackedBeanState
SwitchableApplicationContextFactory
.Modifier | Constructor and Description |
---|---|
protected |
SwitchableState(String sourceBeanName)
Instantiates a new switchable state.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ApplicationContext |
getApplicationContext()
Gets the application context.
|
String |
getProperty(String name)
Gets a property value.
|
Set<String> |
getPropertyNames()
Gets the names of all properties.
|
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 SwitchableState(String sourceBeanName)
sourceBeanName
- the source bean namepublic void start()
PropertyBackedBeanState
start
in interface PropertyBackedBeanState
public void stop()
PropertyBackedBeanState
stop
in interface PropertyBackedBeanState
public org.springframework.context.ApplicationContext getApplicationContext()
public String getProperty(String name)
PropertyBackedBeanState
getProperty
in interface PropertyBackedBeanState
name
- the namepublic Set<String> getPropertyNames()
PropertyBackedBeanState
getPropertyNames
in interface PropertyBackedBeanState
public 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 nameCopyright © 2005–2017 Alfresco Software. All rights reserved.