org.roscopeco.janno.views
Class ConstantBeanBinding

java.lang.Object
  extended by 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)

Constructor Summary
ConstantBeanBinding(Object bean)
           
 
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
 

Constructor Detail

ConstantBeanBinding

public ConstantBeanBinding(Object bean)
Method Detail

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.