|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.bean.Default
public class Default
A helper bean to assist with providing defaults for unspecified
parameters. It is initalized
with an IBinding
and a default value. It's value property
is either the value of the binding, but if the binding is null,
or the binding returns null, the default value is returned.
Constructor Summary | |
---|---|
Default()
|
Method Summary | |
---|---|
void |
discardFromPool()
Invoked just as a Pool discards an object (for lack of use). |
IBinding |
getBinding()
|
Object |
getDefaultValue()
|
Object |
getValue()
Returns the value of the binding. |
void |
resetForPool()
Invoked by a Pool
just before the object is added to the pool. |
void |
setBinding(IBinding value)
|
void |
setDefaultValue(Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Default()
Method Detail |
---|
public void resetForPool()
IPoolable
Pool
just before the object is added to the pool.
The object should return its state to how it was when freshly instantiated
(or at least, its state should be indistinguishable from a freshly
instantiated instance).
resetForPool
in interface IPoolable
public void setBinding(IBinding value)
public IBinding getBinding()
public void setDefaultValue(Object value)
public Object getDefaultValue()
public Object getValue()
public void discardFromPool()
IPoolable
discardFromPool
in interface IPoolable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |