1 16 package org.springframework.webflow.engine; 17 18 import java.io.ObjectStreamException ; 19 import java.io.Serializable ; 20 21 import org.springframework.webflow.execution.RequestContext; 22 import org.springframework.webflow.execution.ViewSelection; 23 24 31 public final class NullViewSelector implements ViewSelector, Serializable { 32 33 37 38 41 public static final ViewSelector INSTANCE = new NullViewSelector(); 42 43 46 private NullViewSelector() { 47 } 48 49 public boolean isEntrySelectionRenderable(RequestContext context) { 50 return true; 51 } 52 53 public ViewSelection makeEntrySelection(RequestContext context) { 54 return ViewSelection.NULL_VIEW; 55 } 56 57 public ViewSelection makeRefreshSelection(RequestContext context) { 58 return makeEntrySelection(context); 59 } 60 61 private Object readResolve() throws ObjectStreamException { 63 return INSTANCE; 64 } 65 66 } | Popular Tags |