View Javadoc
1 /* 2 * Angkor Web Framework 3 * 4 * Distributable under LGPL license. 5 * See terms of license at gnu.org. 6 */ 7 8 package com.tirsen.angkor; 9 10 import java.io.Serializable; 11 12 13 /*** 14 * A factory for instantiating Views. 15 * 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. 19 * 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. 25 * 26 * <!-- $Id: ViewFactory.java,v 1.4 2002/10/07 19:49:18 tirsen Exp $ --> 27 * 28 * @author $Author: tirsen $ 29 * @version $Revision: 1.4 $ 30 */ 31 public interface ViewFactory extends Serializable 32 { 33 /*** 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. 37 */ 38 //void prepare() throws Exception; 39 40 /*** 41 * Two consecutive calls may or may not return the same instance. 42 */ 43 View getView(); 44 }

This page was automatically generated by Maven