01: /*
02: * Created on May 17, 2006
03: */
04: package uk.org.ponder.rsac;
05:
06: import uk.org.ponder.stringutil.StringGetter;
07:
08: /** Bridges a String value from request scope to application scope **/
09:
10: public class RSACStringBridge implements StringGetter {
11:
12: private RSACBeanLocator rsacbl;
13: private String targetbean;
14:
15: public void setRSACBeanLocator(RSACBeanLocator rsacbl) {
16: this .rsacbl = rsacbl;
17: }
18:
19: public void setTargetBeanName(String targetbean) {
20: this .targetbean = targetbean;
21: }
22:
23: public String get() {
24: String value = (String) rsacbl.getBeanLocator().locateBean(
25: targetbean);
26: return value;
27: }
28:
29: }
|