2 * Angkor Web Framework
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
8 package com.tirsen.angkor;
10 import java.io.Serializable;
14 * A factory for instantiating Views.
16 * Since we don't want to create the whole hierarchy of views immediately when a user
17 * inits a new session views are created lazily as late as possible, ideally first at
18 * render time.
20 * Many implementations of this interface are controllers since they are responsible
21 * both for creating views and for being the intelligence that actually controls them.
22 * Thus when they create a view they also register all the needed event-listeners. This
23 * makes it unnecessary even to instantiate a view just to add a listener since the code
24 * that adds the listeners and creates the view are executed at the same time.
26 * <!-- $Id: ViewFactory.java,v 1.4 2002/10/07 19:49:18 tirsen Exp $ -->
28 * @author $Author: tirsen $
29 * @version $Revision: 1.4 $
31 public interface ViewFactory extends Serializable
34 * Prepare to create the view. This is performed at an earlier stage in the request processing
35 * and most error-prone tasks should be performed here.
36 * @deprecated this is still supported but you should do all preparing in getView or createView instead.
38 //void prepare() throws Exception;
41 * Two consecutive calls may or may not return the same instance.
43 View getView();
This page was automatically generated by Maven