com.tirsen.angkor
Interface ViewFactory

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ErrorViewFactory
All Known Implementing Classes:
AbstractViewFactory

public interface ViewFactory
extends java.io.Serializable

A factory for instantiating Views. Since we don't want to create the whole hierarchy of views immediately when a user inits a new session views are created lazily as late as possible, ideally first at render time. Many implementations of this interface are controllers since they are responsible both for creating views and for being the intelligence that actually controls them. Thus when they create a view they also register all the needed event-listeners. This makes it unnecessary even to instantiate a view just to add a listener since the code that adds the listeners and creates the view are executed at the same time.

Version:
$Revision: 1.4 $
Author:
$Author: tirsen $

Method Summary
 View getView()
          Two consecutive calls may or may not return the same instance.
 

Method Detail

getView

public View getView()
Two consecutive calls may or may not return the same instance.



Copyright © 2002-2002 . All Rights Reserved.