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()
PropertyBackedBeanStatestart in interface PropertyBackedBeanStatepublic void stop()
PropertyBackedBeanStatestop in interface PropertyBackedBeanStatepublic org.springframework.context.ApplicationContext getApplicationContext()
public String getProperty(String name)
PropertyBackedBeanStategetProperty in interface PropertyBackedBeanStatename - the namepublic Set<String> getPropertyNames()
PropertyBackedBeanStategetPropertyNames in interface PropertyBackedBeanStatepublic 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 nameCopyright © 2005–2018 Alfresco Software. All rights reserved.