Interface PropertyBackedBeanState
-
- All Known Subinterfaces:
ApplicationContextFactory,PropertyBackedBean
- All Known Implementing Classes:
AbstractPropertyBackedBean,AuditModelRegistryImpl,AuditModelRegistryImpl.AuditModelRegistryState,ChildApplicationContextFactory,ChildApplicationContextFactory.ApplicationContextState,CompositeDataBean,CompositeDataBean.CompositeDataBeanState,CryptodocSwitchableApplicationContextFactory,CryptodocSwitchableApplicationContextFactory.CryptoSwitchableState,DefaultChildApplicationContextManager,DefaultChildApplicationContextManager.ApplicationContextManagerState,LuceneChildApplicationContextFactory,NoIndexChildApplicationContextFactory,SolrChildApplicationContextFactory,SwitchableApplicationContextFactory,SwitchableApplicationContextFactory.SwitchableState
public interface PropertyBackedBeanStateAPropertyBackedBeanStaterepresents the state of a configurable sub-component or subsystem in the Alfresco server. It exposes configurable properties, along withstop()andstart()methods. To modify the state, first ensure its associated component is stopped by callingstop(). Then set one or more properties. Then test out the changes withstart(). In the Alfresco enterprise editionPropertyBackedBeanStates are exposed as persistent MBeans and can be reconfigured at runtime across a cluster via JMX.- Author:
- dward
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetProperty(java.lang.String name)Gets a property value.java.util.Set<java.lang.String>getPropertyNames()Gets the names of all properties.voidremoveProperty(java.lang.String name)Removes a property.voidsetProperty(java.lang.String name, java.lang.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.
-
-
-
Method Detail
-
getPropertyNames
java.util.Set<java.lang.String> getPropertyNames()
Gets the names of all properties.- Returns:
- the property names
-
getProperty
java.lang.String getProperty(java.lang.String name)
Gets a property value.- Parameters:
name- the name- Returns:
- the property value
-
setProperty
void setProperty(java.lang.String name, java.lang.String value)Sets the value of a property. This may only be called afterstop().- Parameters:
name- the property namevalue- the property value
-
removeProperty
void removeProperty(java.lang.String name)
Removes a property. This may only be called afterstop().- Parameters:
name- the property name
-
start
void start()
Starts up the component, using its new property values.
-
stop
void stop()
Stops the component, so that its property values can be changed.
-
-