org.roscopeco.janno.views
Interface BeanBinding

All Known Implementing Classes:
ConstantBeanBinding

public interface BeanBinding

Represents an object (usually a JavaBean(tm)) bound into a particular model with a specific name. Implementations of this class are registered in a request-line container (either by preregistration or by a specific action) for subsequent processing during view dispatch. BeanBindings should be registered with String keys, since that is the safest 'lowest common denominator' for operation with multiple view layer technologies.

The primary purpose of this class is to allow Velocity context entries to be supplied by the controller. It is not ideal, as it creates all kinds of strange side-effect stuff and the like, but it will do for now.

This might be considered a model-facilitator, since the collection of bindings available to a given view could be seen as a model. In practice, this viewpoint is somewhat askew, owing to the changable nature of the bindings.

Version:
$Revision: 1.2 $ $Date: 2005/08/26 22:09:01 $
Author:
Ross Bamford (rosco<at>roscopeco.co.uk)

Method Summary
 Object get()
          Returns the bound bean.
 

Method Detail

get

Object get()
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).

Returns:
The bound bean.


Copyright © 2005 Roscopeco Open Technologies. All Rights Reserved.