|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.management.subsystems.DefaultPropertyBackedBeanRegistry
public class DefaultPropertyBackedBeanRegistry
A default implementation of PropertyBackedBeanRegistry
. An instance of this class will defer broadcasting
PropertyBackedBeanEvent
s 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 Summary | |
---|---|
DefaultPropertyBackedBeanRegistry()
|
Method Summary | |
---|---|
void |
addListener(org.springframework.context.ApplicationListener listener)
Registers a listener object that will be notified of register and deregister calls via a PropertyBackedBeanEvent . |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultPropertyBackedBeanRegistry()
Method Detail |
---|
public void addListener(org.springframework.context.ApplicationListener listener)
PropertyBackedBeanRegistry
PropertyBackedBeanEvent
.
addListener
in interface PropertyBackedBeanRegistry
listener
- the listenerpublic void register(PropertyBackedBean bean)
PropertyBackedBeanRegistry
PropertyBackedBean
has been initialized.
register
in interface PropertyBackedBeanRegistry
bean
- the beanpublic void deregister(PropertyBackedBean bean, boolean isPermanent)
PropertyBackedBeanRegistry
PropertyBackedBean#destroy(boolean)
has been called on a bean.
deregister
in interface PropertyBackedBeanRegistry
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
.public void broadcastStart(PropertyBackedBean bean)
PropertyBackedBeanRegistry
PropertyBackedBean
has been started.
broadcastStart
in interface PropertyBackedBeanRegistry
bean
- the beanpublic void broadcastStop(PropertyBackedBean bean)
PropertyBackedBeanRegistry
PropertyBackedBean
has been stopped.
broadcastStop
in interface PropertyBackedBeanRegistry
bean
- the beanpublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |