@Override public void setValue(ELContext context, Object base, Object property, Object value) { throw new PropertyNotWritableException("Cannot write property: " + property); } }
/** * If the base object is a ResourceBundle, throw a {@link PropertyNotWritableException}. * * @param context * The context of this evaluation. * @param base * The bundle to analyze. Only bases of type ResourceBundle are handled by this * resolver. * @param property * The name of the property to analyze. Will be coerced to a String. * @param value * The value to be set. * @throws NullPointerException * if context is null. * @throws PropertyNotWritableException * Always thrown if base is an instance of ResourceBundle. */ @Override public void setValue(ELContext context, Object base, Object property, Object value) { if (context == null) { throw new NullPointerException("context is null"); } if (isResolvable(base)) { throw new PropertyNotWritableException("resolver is read-only"); } }
@Override public void setValue(ELContext context, Object base, Object property, Object value) throws PropertyNotWritableException { if (resolve(context, base, property)) { if (readOnly) { throw new PropertyNotWritableException("Resolver is read only!"); } setProperty((String) property, value); } }
throw new PropertyNotWritableException("resolver is read-only");
throw new PropertyNotWritableException("resolver is read-only");
throw new PropertyNotWritableException("resolver is read-only"); list.set(index, value); } catch (UnsupportedOperationException e) { throw new PropertyNotWritableException(e); } catch (ArrayStoreException e) { throw new IllegalArgumentException(e);
throw new PropertyNotWritableException("resolver is read-only"); Method method = beanProperty.getWriteMethod(); if (method == null) { throw new PropertyNotWritableException("Cannot write property: " + property); throw new ELException("Cannot write property: " + property, e); } catch (IllegalAccessException e) { throw new PropertyNotWritableException("Cannot write property: " + property, e);
throw new PropertyNotWritableException("resolver is read-only");