public class DefaultPropertyBackedBeanRegistry extends java.lang.Object implements PropertyBackedBeanRegistry, org.springframework.context.ApplicationListener
PropertyBackedBeanRegistry. An instance of this class will defer broadcasting
PropertyBackedBeanEvents until it is notified that the database schema is available via a
SchemaAvailableEvent. This allows listeners to potentially reconfigure the beans using persisted database
information.| Constructor and Description |
|---|
DefaultPropertyBackedBeanRegistry() |
| 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,
java.util.Collection properties)
Signals that a
PropertyBackedBean has been asked to
remove properties. |
void |
broadcastSetProperties(PropertyBackedBean bean,
java.util.Map properties)
Signals that a
PropertyBackedBean has been asked to
update properties. |
void |
broadcastSetProperty(PropertyBackedBean bean,
java.lang.String name,
java.lang.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 that
PropertyBackedBean#destroy(boolean) has been called on a bean. |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
register(PropertyBackedBean bean)
Signals that a
PropertyBackedBean has been initialized. |
public void addListener(org.springframework.context.ApplicationListener listener)
PropertyBackedBeanRegistryPropertyBackedBeanEvent.addListener in interface PropertyBackedBeanRegistrylistener - the listenerpublic void register(PropertyBackedBean bean)
PropertyBackedBeanRegistryPropertyBackedBean has been initialized.register in interface PropertyBackedBeanRegistrybean - the beanpublic void deregister(PropertyBackedBean bean, boolean isPermanent)
PropertyBackedBeanRegistryPropertyBackedBean#destroy(boolean) has been called on a bean.deregister in interface PropertyBackedBeanRegistrybean - 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.public void broadcastStart(PropertyBackedBean bean)
PropertyBackedBeanRegistryPropertyBackedBean has been started.broadcastStart in interface PropertyBackedBeanRegistrybean - the beanpublic void broadcastStop(PropertyBackedBean bean)
PropertyBackedBeanRegistryPropertyBackedBean has been stopped.broadcastStop in interface PropertyBackedBeanRegistrybean - the beanpublic void broadcastSetProperty(PropertyBackedBean bean, java.lang.String name, java.lang.String value)
PropertyBackedBeanRegistryPropertyBackedBean has been asked to
update a property.broadcastSetProperty in interface PropertyBackedBeanRegistrybean - the beanname - the namevalue - the valuepublic void broadcastSetProperties(PropertyBackedBean bean, java.util.Map properties)
PropertyBackedBeanRegistryPropertyBackedBean has been asked to
update properties.broadcastSetProperties in interface PropertyBackedBeanRegistrybean - the beanpublic void broadcastRemoveProperties(PropertyBackedBean bean, java.util.Collection properties)
PropertyBackedBeanRegistryPropertyBackedBean has been asked to
remove properties.broadcastRemoveProperties in interface PropertyBackedBeanRegistrybean - the beanpublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListenerCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.