org.roscopeco.janno.views
Class ConstantBeanBinding
java.lang.Object
org.roscopeco.janno.views.ConstantBeanBinding
- All Implemented Interfaces:
- BeanBinding
public class ConstantBeanBinding
- extends Object
- implements BeanBinding
Simple BeanBinding
implementation that keeps the same been
for life.
- Version:
- $Revision: 1.1 $ $Date: 2005/08/24 16:34:19 $
- Author:
- Ross Bamford (rosco<at>roscopeco.co.uk)
Method Summary |
Object |
get()
Returns the bound bean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstantBeanBinding
public ConstantBeanBinding(Object bean)
get
public Object get()
- Description copied from interface:
BeanBinding
- Returns the bound bean. Bindings may never return
null
from this method (i.e. it should not be possible
to create a null
, weakly-referent, or othewise volatile
binding, unless such beans are removed before they're ever queried
by some external means).
- Specified by:
get
in interface BeanBinding
- Returns:
- The bound bean.
Copyright © 2005 Roscopeco Open Technologies. All Rights Reserved.