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,EncryptedContentStoreChildApplicationContextFactory,LuceneChildApplicationContextFactory,NoIndexChildApplicationContextFactory,SolrChildApplicationContextFactory,SwitchableApplicationContextFactory,SwitchableApplicationContextFactory.SwitchableState
public interface PropertyBackedBeanState
A
PropertyBackedBeanState represents the state of a configurable sub-component or subsystem in the
Alfresco server. It exposes configurable properties, along with stop() and start() methods. To
modify the state, first ensure its associated component is stopped by calling stop(). Then set one or more
properties. Then test out the changes with start(). In the Alfresco enterprise edition
PropertyBackedBeanStates are exposed as persistent MBeans and can be reconfigured at runtime across a
cluster via JMX.- Author:
- dward
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String name) Gets a property value.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.
-
Method Details
-
getPropertyNames
Gets the names of all properties.- Returns:
- the property names
-
getProperty
Gets a property value.- Parameters:
name- the name- Returns:
- the property value
-
setProperty
Sets the value of a property. This may only be called afterstop().- Parameters:
name- the property namevalue- the property value
-
removeProperty
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.
-