103104105106107108109110
public Object getValue(String expression, Map<String, Object> context, Object root) throws ReflectionException { try { return ognlUtil.getValue(expression, context, root); } catch (OgnlException e) { throw new ReflectionException(e); } }
112113114115116117118119
public void setValue(String expression, Map<String, Object> context, Object root, Object value) throws ReflectionException { try { Ognl.setValue(expression, context, root, value); } catch (OgnlException e) { throw new ReflectionException(e); } }
196197198199200201202203204205206
) { return target; } } } catch (IntrospectionException ex) { throw new ReflectionException("Cannot figure out real target class", ex); } return null; }
435436437438439440441442443444445
Throwable reason = e.getReason(); String msg = "Caught OgnlException while setting property '" + name + "' on type '" + o.getClass().getName() + "'."; Throwable exception = (reason == null) ? e : reason; if (throwPropertyExceptions) { throw new ReflectionException(msg, exception); } else { if (devMode) { LOG.warn(msg, exception); } }
189190191192193194195196197198199
409410411412413414415416417418419
206207208209210211212213214215216
461462463464465466467468469470471
258259260261262263264265266267268
549550551552553554555556557558559
Throwable reason = e.getReason(); String msg = "Caught OgnlException while setting property '" + name + "' on type '" + o.getClass().getName() + "'."; Throwable exception = (reason == null) ? e : reason; if (throwPropertyExceptions) { throw new ReflectionException(msg, exception); } else if (devMode) { LOG.warn(msg, exception); } } }