Package javax.el

Examples of javax.el.PropertyNotWritableException


        String strProperty = property.toString();

        if (implicitObjects.containsKey(strProperty))
        {
            throw new PropertyNotWritableException();
        }
    }
View Full Code Here


    }

    @Override
    public void setValue(EvaluationContext ctx, Object value)
            throws ELException {
        throw new PropertyNotWritableException(MessageFactory.get("error.syntax.set"));
    }
View Full Code Here

    }

    int index = Arrays.binarySearch(IMPLICIT_OBJECTS, property);
    if (index >= 0)
    {
      throw new PropertyNotWritableException((String) property);
    }
  }
View Full Code Here

    }

    @Override
    public void setValue(EvaluationContext ctx, Object value)
            throws ELException {
        throw new PropertyNotWritableException(MessageFactory.get("error.syntax.set"));
    }
View Full Code Here

      context.setPropertyResolved(true);

      try {
        adapt(base).put(property, value);
      } catch (UnsupportedOperationException e) {
        throw new PropertyNotWritableException(e);
      }
    }
  }
View Full Code Here

    {
      try
      {
        // If exception not thrown then we had a hit
        Enum.valueOf(BRIDGE_IMPLICT_OBJECTS_ENUM.class, (String) property);
        throw new PropertyNotWritableException((String) property);
      }
      catch (IllegalArgumentException e)
      {
        ; // do nothing
      }
View Full Code Here

  public void setValue(ELContext elContext, Object base, Object property, Object value) throws ELException {
    if (base == null) {
      String beanName = property.toString();
      BeanFactory bf = getBeanFactory(elContext);
      if (bf.containsBean(beanName)) {
        throw new PropertyNotWritableException(
            "Variable '" + beanName + "' refers to a Spring bean which by definition is not writable");
      }
    }
  }
View Full Code Here

  }

  public void setValue(ELContext elContext, Object base, Object property, Object value) {
    if (base == null && REQUEST_CONTEXT_VARIABLE_NAME.equals(property)) {
      elContext.setPropertyResolved(true);
      throw new PropertyNotWritableException("The RequestContext cannot be set with an expression.");
    }
  }
View Full Code Here

    if (base != null || requestContext == null) {
      return;
    }
    if (ImplicitVariables.matches(property)) {
      context.setPropertyResolved(true);
      throw new PropertyNotWritableException("The implicit flow variable " + property + " is not writable.");
    }
  }
View Full Code Here

    RequestContext requestContext = getRequestContext();
    if (requestContext == null) {
      return;
    }
    if (base == null && RESOURCE_BUNDLE_KEY.equals(property)) {
      throw new PropertyNotWritableException("The '" + RESOURCE_BUNDLE_KEY
          + "' implicit variable is not writable.");
    } else if (base instanceof MessageSource) {
      throw new PropertyNotWritableException("The flow's MessageSource is not writable.");
    }
  }
View Full Code Here

TOP

Related Classes of javax.el.PropertyNotWritableException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.