|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.util.Delegatables.DelegatableWrapper
A serializable wrapper for a target Delegatable. All accessors, including identity, forward to the target.
Constructor Summary | |
Delegatables.DelegatableWrapper(Delegatable target)
|
Method Summary | |
java.lang.Object |
getDelegator()
Gets the delegator of this delegate, as set by initDelegator(). |
Delegatable |
initDelegator(java.lang.Object delegator)
Returns this wrapper, not the target. |
boolean |
isDelegatorInited()
Returns true if initDelegator() has been called and the initialization is still valid; otherwise, returns false. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Delegatables.DelegatableWrapper(Delegatable target)
target
- Wrapped target. Never null.Method Detail |
public Delegatable initDelegator(java.lang.Object delegator)
initDelegator
in interface Delegatable
delegator
- Reference to the delegator. If self-delegation
is allowed and the delegator is null, this object is the delegator
(which facilitates inline construction).
public boolean isDelegatorInited()
Delegatable
isDelegatorInited
in interface Delegatable
public java.lang.Object getDelegator()
Delegatable
getDelegator
in interface Delegatable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |