1 5 6 package org.infohazard.maverick.view; 7 8 import org.infohazard.maverick.flow.*; 9 import org.jdom.Element; 10 import java.io.IOException ; 11 import javax.servlet.ServletConfig ; 12 import javax.servlet.ServletException ; 13 14 15 22 public class NullViewFactory implements ViewFactory 23 { 24 26 static View singletonNull = new NullView(); 27 28 30 public void init(Element factoryNode, ServletConfig servletCfg) throws ConfigException 31 { 32 } 33 34 36 public View createView(Element viewNode) throws ConfigException 37 { 38 return singletonNull; 39 } 40 41 44 public static class NullView implements View 45 { 46 47 public void go(ViewContext vctx) throws IOException , ServletException 48 { 49 } 50 } 51 } 52 | Popular Tags |