public abstract class LazyBean extends Object
ensureProcessed(), which
will trigger processing of the bean's properties via process(). After processing, no setter guarded with assertNotProcessed() (of raw properties) may be called, or
else the bean may find itself in an inconsistent state whereby the
computed properties do not match the raw ones. The receiver detects
and blocks circular processing attempts, whereby two separate but
mutually dependent beans attempt to process each other during their
own processing, thereby leading to an endless cycle.| Constructor and Description |
|---|
LazyBean() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertNotProcessed()
Asserts that the receiver is not processed.
|
protected void |
ensureProcessed()
Ensures that the receiver is already processed, possibly by
invoking
process(). |
protected abstract void |
process()
Processes the receiver.
|
protected void assertNotProcessed()
throws I18NRuntimeException
I18NRuntimeException - Thrown if it is.protected void ensureProcessed()
process().I18NRuntimeException - Thrown if a nested invocation
occurs.protected abstract void process()
ensureProcessed().Copyright © 2015. All Rights Reserved.