org.apache.tapestry.binding
Class BeanBinding
java.lang.Object
org.apache.tapestry.binding.AbstractBinding
org.apache.tapestry.binding.BeanBinding
- All Implemented Interfaces:
- org.apache.hivemind.Locatable, IBinding
public class BeanBinding
- extends AbstractBinding
Binding whose value is a named bean provided by a component.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Constructor Summary |
BeanBinding(java.lang.String description,
ValueConverter valueConverter,
org.apache.hivemind.Location location,
IComponent component,
java.lang.String beanName)
|
Method Summary |
java.lang.Object |
getComponent()
Returns the component to which this binding is connected; this is currently only used when
building certain exceptions. |
java.lang.Object |
getObject()
Returns the value of this binding. |
boolean |
isInvariant()
Beans obtained via the binding should *not* be cached by the component because beans may be
discarded inside the BeanProvider based on the life cycle of
the bean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BeanBinding
public BeanBinding(java.lang.String description,
ValueConverter valueConverter,
org.apache.hivemind.Location location,
IComponent component,
java.lang.String beanName)
isInvariant
public boolean isInvariant()
- Beans obtained via the binding should *not* be cached by the component because beans may be
discarded inside the
BeanProvider
based on the life cycle of
the bean. The BeanProvider caches beans as well.
- Specified by:
isInvariant
in interface IBinding
- Overrides:
isInvariant
in class AbstractBinding
getComponent
public java.lang.Object getComponent()
- Description copied from class:
AbstractBinding
- Returns the component to which this binding is connected; this is currently only used when
building certain exceptions. This implementation returns null.
- Overrides:
getComponent
in class AbstractBinding
getObject
public java.lang.Object getObject()
- Description copied from interface:
IBinding
- Returns the value of this binding. This is the essential method.