public interface PropertyBackedBeanRegistry
PropertyBackedBean
instances. A
PropertyBackedBean
should call register(PropertyBackedBean)
after initialization and
deregister(PropertyBackedBean, boolean)
when discarded. Other classes may register for notification of these
events by calling addListener(ApplicationListener)
.Modifier and Type | Method and Description |
---|---|
void |
addListener(org.springframework.context.ApplicationListener listener)
Registers a listener object that will be notified of register and deregister calls via a
PropertyBackedBeanEvent . |
void |
broadcastRemoveProperties(PropertyBackedBean bean,
Collection<String> properties)
Signals that a
PropertyBackedBean has been asked to
remove properties. |
void |
broadcastSetProperties(PropertyBackedBean bean,
Map<String,String> properties)
Signals that a
PropertyBackedBean has been asked to
update properties. |
void |
broadcastSetProperty(PropertyBackedBean bean,
String name,
String value)
Signals that a
PropertyBackedBean has been asked to
update a property. |
void |
broadcastStart(PropertyBackedBean bean)
Signals that a
PropertyBackedBean has been started. |
void |
broadcastStop(PropertyBackedBean bean)
Signals that a
PropertyBackedBean has been stopped. |
void |
deregister(PropertyBackedBean bean,
boolean isPermanent)
Signals the
PropertyBackedBeanUnregisteredEvent event. |
void |
register(PropertyBackedBean bean)
Signals that a
PropertyBackedBean has been initialized. |
void addListener(org.springframework.context.ApplicationListener listener)
PropertyBackedBeanEvent
.listener
- the listenervoid register(PropertyBackedBean bean)
PropertyBackedBean
has been initialized.bean
- the beanvoid deregister(PropertyBackedBean bean, boolean isPermanent)
PropertyBackedBeanUnregisteredEvent
event.bean
- the beanisPermanent
- is the component being destroyed forever, i.e. should persisted values be removed? On server shutdown,
this value would be false
, whereas on the removal of a dynamically created instance, this
value would be true
.void broadcastStart(PropertyBackedBean bean)
PropertyBackedBean
has been started.bean
- the beanvoid broadcastStop(PropertyBackedBean bean)
PropertyBackedBean
has been stopped.bean
- the beanvoid broadcastSetProperty(PropertyBackedBean bean, String name, String value)
PropertyBackedBean
has been asked to
update a property.bean
- the beanname
- the namevalue
- the valuevoid broadcastSetProperties(PropertyBackedBean bean, Map<String,String> properties)
PropertyBackedBean
has been asked to
update properties.bean
- the beanvoid broadcastRemoveProperties(PropertyBackedBean bean, Collection<String> properties)
PropertyBackedBean
has been asked to
remove properties.bean
- the beanCopyright © 2005–2017 Alfresco Software. All rights reserved.