public static final Object getMethodValue(OgnlContext context, Object target, String propertyName) throws OgnlException, IllegalAccessException, NoSuchMethodException, IntrospectionException { return getMethodValue(context, target, propertyName, false); }
/** * Don't use this method as it doesn't check member access rights via {@link MemberAccess} interface */ @Deprecated public static final Object getMethodValue(OgnlContext context, Object target, String propertyName) throws OgnlException, IllegalAccessException, NoSuchMethodException, IntrospectionException { return getMethodValue(context, target, propertyName, false); }
/** * Don't use this method as it doesn't check member access rights via {@link MemberAccess} interface */ @Deprecated public static final Object getMethodValue(OgnlContext context, Object target, String propertyName) throws OgnlException, IllegalAccessException, NoSuchMethodException, IntrospectionException { return getMethodValue(context, target, propertyName, false); }
/** Returns OgnlRuntime.NotFound if the property does not exist. */ public Object getPossibleProperty( Map context, Object target, String name) throws OgnlException { Object result; OgnlContext ognlContext = (OgnlContext)context; try { if ((result = OgnlRuntime.getMethodValue(ognlContext, target, name, true)) == OgnlRuntime.NotFound) { result = OgnlRuntime.getFieldValue(ognlContext, target, name, true); } } catch (IntrospectionException ex) { throw new OgnlException(name, ex); } catch (OgnlException ex) { throw ex; } catch (Exception ex) { throw new OgnlException(name, ex); } return result; }
/** * Returns OgnlRuntime.NotFound if the property does not exist. */ public Object getPossibleProperty(Map context, Object target, String name) throws OgnlException { Object result; OgnlContext ognlContext = (OgnlContext) context; try { if ((result = OgnlRuntime.getMethodValue(ognlContext, target, name, true)) == OgnlRuntime.NotFound) { result = OgnlRuntime.getFieldValue(ognlContext, target, name, true); } } catch (IntrospectionException ex) { throw new OgnlException(name, ex); } catch (OgnlException ex) { throw ex; } catch (Exception ex) { throw new OgnlException(name, ex); } return result; }
/** * Returns OgnlRuntime.NotFound if the property does not exist. */ public Object getPossibleProperty(Map context, Object target, String name) throws OgnlException { Object result; OgnlContext ognlContext = (OgnlContext) context; try { if ((result = OgnlRuntime.getMethodValue(ognlContext, target, name, true)) == OgnlRuntime.NotFound) { result = OgnlRuntime.getFieldValue(ognlContext, target, name, true); } } catch (IntrospectionException ex) { throw new OgnlException(name, ex); } catch (OgnlException ex) { throw ex; } catch (Exception ex) { throw new OgnlException(name, ex); } return result; }