Class SwitchableApplicationContextFactory.SwitchableState
- java.lang.Object
-
- org.alfresco.repo.management.subsystems.SwitchableApplicationContextFactory.SwitchableState
-
- All Implemented Interfaces:
PropertyBackedBeanState
- Direct Known Subclasses:
CryptodocSwitchableApplicationContextFactory.CryptoSwitchableState
- Enclosing class:
- SwitchableApplicationContextFactory
protected class SwitchableApplicationContextFactory.SwitchableState extends Object implements PropertyBackedBeanState
Represents the state of aSwitchableApplicationContextFactory.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSwitchableState(String sourceBeanName)Instantiates a new switchable state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.context.ApplicationContextgetApplicationContext()Gets the application context.StringgetProperty(String name)Gets a property value.Set<String>getPropertyNames()Gets the names of all properties.voidremoveProperty(String name)Removes a property.voidsetProperty(String name, String value)Sets the value of a property.voidstart()Starts up the component, using its new property values.voidstop()Stops the component, so that its property values can be changed.
-
-
-
Constructor Detail
-
SwitchableState
protected SwitchableState(String sourceBeanName)
Instantiates a new switchable state.- Parameters:
sourceBeanName- the source bean name
-
-
Method Detail
-
start
public void start()
Description copied from interface:PropertyBackedBeanStateStarts up the component, using its new property values.- Specified by:
startin interfacePropertyBackedBeanState
-
stop
public void stop()
Description copied from interface:PropertyBackedBeanStateStops the component, so that its property values can be changed.- Specified by:
stopin interfacePropertyBackedBeanState
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
Gets the application context.- Returns:
- the application context
-
getProperty
public String getProperty(String name)
Description copied from interface:PropertyBackedBeanStateGets a property value.- Specified by:
getPropertyin interfacePropertyBackedBeanState- Parameters:
name- the name- Returns:
- the property value
-
getPropertyNames
public Set<String> getPropertyNames()
Description copied from interface:PropertyBackedBeanStateGets the names of all properties.- Specified by:
getPropertyNamesin interfacePropertyBackedBeanState- Returns:
- the property names
-
setProperty
public void setProperty(String name, String value)
Description copied from interface:PropertyBackedBeanStateSets the value of a property. This may only be called afterPropertyBackedBeanState.stop().- Specified by:
setPropertyin interfacePropertyBackedBeanState- Parameters:
name- the property namevalue- the property value
-
removeProperty
public void removeProperty(String name)
Description copied from interface:PropertyBackedBeanStateRemoves a property. This may only be called afterPropertyBackedBeanState.stop().- Specified by:
removePropertyin interfacePropertyBackedBeanState- Parameters:
name- the property name
-
-