public class BeanBinding extends AbstractBinding
Constructor and Description |
---|
BeanBinding(java.lang.String description,
ValueConverter valueConverter,
org.apache.hivemind.Location location,
IComponent component,
java.lang.String beanName) |
Modifier and Type | Method and Description |
---|---|
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. |
createReadOnlyBindingException, extendDescription, getDescription, getLocation, getObject, getValueConverter, setObject, toString
public BeanBinding(java.lang.String description, ValueConverter valueConverter, org.apache.hivemind.Location location, IComponent component, java.lang.String beanName)
public boolean isInvariant()
BeanProvider
based on the life cycle of
the bean. The BeanProvider caches beans as well.isInvariant
in interface IBinding
isInvariant
in class AbstractBinding
public java.lang.Object getComponent()
AbstractBinding
getComponent
in class AbstractBinding