@Override public void setValue(ELContext context, Object base, Object property, Object value) { if (base == null || this.getCommonPropertyType(context, base) == null) { return; } String propertyName = property.toString(); try { ReflectUtil.invoke(base, this.writeMethodName, new Object[] { propertyName, value }); context.setPropertyResolved(true); } catch (Exception e) { throw new ELException(e); } } }
@Override public void setValue(ELContext context, Object base, Object property, Object value) { if (base == null || this.getCommonPropertyType(context, base) == null) { return; } String propertyName = property.toString(); try { ReflectUtil.invoke(base, this.writeMethodName, new Object[] { propertyName, value }); context.setPropertyResolved(true); } catch (Exception e) { throw new ELException(e); } } }
@Override public Object getValue(ELContext context, Object base, Object property) { if (base == null || this.getCommonPropertyType(context, base) == null) { return null; } String propertyName = property.toString(); try { Object value = ReflectUtil.invoke(base, this.readMethodName, new Object[] { propertyName }); context.setPropertyResolved(true); return value; } catch (Exception e) { throw new ELException(e); } }
@Override public Object getValue(ELContext context, Object base, Object property) { if (base == null || this.getCommonPropertyType(context, base) == null) { return null; } String propertyName = property.toString(); try { Object value = ReflectUtil.invoke(base, this.readMethodName, new Object[] { propertyName }); context.setPropertyResolved(true); return value; } catch (Exception e) { throw new ELException(e); } }
@Override public void setValue(ELContext context, Object base, Object property, Object value) { if (base == null || this.getCommonPropertyType(context, base) == null) { return; } String propertyName = property.toString(); try { ReflectUtil.invoke(base, this.writeMethodName, new Object[] { propertyName, value }); context.setPropertyResolved(true); } catch (Exception e) { throw new ELException(e); } } }
@Override public Object getValue(ELContext context, Object base, Object property) { if (base == null || this.getCommonPropertyType(context, base) == null) { return null; } String propertyName = property.toString(); try { Object value = ReflectUtil.invoke(base, this.readMethodName, new Object[] { propertyName }); context.setPropertyResolved(true); return value; } catch (Exception e) { throw new ELException(e); } }