01: /*
02: * Created on 13-Feb-2006
03: */
04: package uk.org.ponder.rsf.viewstate;
05:
06: import uk.org.ponder.rsf.view.ViewComponentProducer;
07:
08: /** Implemented by a {@link ViewComponentProducer} to report the exact class of
09: * ViewParameters that it expects to receive when dispatched.
10: *
11: * @author Antranig Basman (antranig@caret.cam.ac.uk)
12: */
13:
14: public interface ViewParamsReporter {
15: /** Determines the ViewParameters class in use for this view.
16: *
17: * @return A ViewParameters object with the same class that this
18: * {@link ViewComponentProducer} expects to receive as its 2nd
19: * argument to {@link ViewComponentProducer#fillComponents}. In general
20: * applications only the class of this object will be significant and it can
21: * be default-constructed. However, any fields set on these returned parameters
22: * and not overwritten during parsing will be preserved.
23: */
24: public ViewParameters getViewParameters();
25: }
|