01: /*
02: * Created on 27-Feb-2006
03: */
04: package uk.org.ponder.beanutil.support;
05:
06: import uk.org.ponder.beanutil.BeanGetter;
07: import uk.org.ponder.beanutil.BeanLocator;
08: import uk.org.ponder.beanutil.BeanModelAlterer;
09:
10: /** Can fetch an EL value from a given (root) BeanLocator */
11:
12: public class ELEvaluator implements BeanGetter {
13: private BeanModelAlterer bma;
14: private BeanLocator beanlocator;
15:
16: public void setBeanModelAlterer(BeanModelAlterer bma) {
17: this .bma = bma;
18: }
19:
20: public void setBeanLocator(BeanLocator beanlocator) {
21: this .beanlocator = beanlocator;
22: }
23:
24: public Object getBean(String beanpath) {
25: return bma.getBeanValue(beanpath, beanlocator, null);
26: }
27:
28: }
|