|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.runtime.CompoundInitializer
The CompoundInitializer class provides a convenient way to group together a number of individual initializers into a single object that implements the Initializer interface. Using this class to group initializers will guarantee that the various init methods on the contained initializers will be invoked in the proper order, i.e. all data init methods will be invoked first in order, followed by all domain init methods, followed by all legacy init methods.
Field Summary | |
static String |
versionId
|
Constructor Summary | |
CompoundInitializer()
Creates a new and empty compound initializer. |
|
CompoundInitializer(org.apache.log4j.Logger log)
Creates a new and empty compound initializer that uses the log Logger to log progress through initialization. |
Method Summary | |
void |
add(Initializer init)
Adds init to the set of initializers to be
initialized by this CompoundInitializer. |
void |
init(DataInitEvent evt)
Implementation of the Initializer.init(DataInitEvent)
method. |
void |
init(DomainInitEvent evt)
Implementation of the Initializer.init(DomainInitEvent)
method. |
void |
init(LegacyInitEvent evt)
Implementation of the Initializer.init(LegacyInitEvent)
method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public CompoundInitializer()
public CompoundInitializer(org.apache.log4j.Logger log)
log
Logger to log progress through initialization.
log
- A logger to be used for logging progress through
initialization.Method Detail |
public void add(Initializer init)
init
to the set of initializers to be
initialized by this CompoundInitializer. The most recently
added initializers will be invoked last.
init
- The initializer to add to this CompoundInitializerpublic void init(DataInitEvent evt)
Initializer.init(DataInitEvent)
method. This implementation proceeds through the list of sub
initializers in order and invokes the init(DataInitEvent)
method of each sub initializer in turn.
init
in interface Initializer
evt
- The data init event.public void init(DomainInitEvent evt)
Initializer.init(DomainInitEvent)
method. This implementation proceeds through the list of sub
initializers in order and invokes the init(DomainInitEvent)
method of each sub initializer in turn.
init
in interface Initializer
evt
- The domain init event.DomainObjectInstantiator
,
DomainObjectFactory
,
GlobalObserver
,
GlobalObserverManager
public void init(LegacyInitEvent evt)
Initializer.init(LegacyInitEvent)
method. This implementation proceeds through the list of sub
initializers in order and invokes the init(LegacyInitEvent)
method of each sub initializer in turn.
init
in interface Initializer
evt
- The legacy init event.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |