01: /*
02: * Created on 10-Mar-2006
03: */
04: package uk.org.ponder.rsac;
05:
06: /** A definition read by RSAC that it will use to operate a RunnableWrapper
07: * surrounding the fetch and initialization of a target request scope bean.
08: * @author Antranig Basman (antranig@caret.cam.ac.uk)
09: *
10: */
11: public class BeanFetchBracketer {
12: /** The name of the request scope bean whose fetch is to be bracketed */
13: private String targetBeanName;
14: /** The name of a bean (of type RunnableWrapper), or else an actual bean
15: * that will be used to perform the bracketing.
16: */
17: private Object wrappingBean;
18:
19: public void setTargetBeanName(String targetBeanName) {
20: this .targetBeanName = targetBeanName;
21: }
22:
23: public String getTargetBeanName() {
24: return targetBeanName;
25: }
26:
27: /** Either a RunnableWrapper, or an EL expression where such can be
28: * found.
29: */
30: public void setWrappingBean(Object wrappingBeanName) {
31: this .wrappingBean = wrappingBeanName;
32: }
33:
34: public Object getWrappingBean() {
35: return wrappingBean;
36: }
37: }
|