01: /*
02: * Created on Apr 26, 2006
03: */
04: package uk.org.ponder.rsf.templateresolver;
05:
06: import uk.org.ponder.rsf.viewstate.ViewParameters;
07:
08: /** A simple TemplateExtensionInferror that always returns the same extension */
09:
10: public class StaticTemplateExtensionInferrer implements
11: TemplateExtensionInferrer {
12: private String extension;
13:
14: public void setExtension(String extension) {
15: this .extension = extension;
16: }
17:
18: public String inferTemplateExtension(ViewParameters viewparams) {
19: return extension;
20: }
21:
22: }
|