Package org.camunda.bpm.engine.impl.javax.el

Examples of org.camunda.bpm.engine.impl.javax.el.ELException


  public boolean isReadOnly(Bindings bindings, ELContext context) {
    return true;
  }

  public void setValue(Bindings bindings, ELContext context, Object value) {
    throw new ELException(LocalMessages.get("error.value.set.rvalue", getStructuralId(bindings)));
  }
View Full Code Here


      return Short.valueOf((short)-((Short)value).shortValue());
    }
    if (value instanceof Byte) {
      return Byte.valueOf((byte)-((Byte)value).byteValue());
    }
    throw new ELException(LocalMessages.get("error.negate", value.getClass()));
  }
View Full Code Here

  /**
   * Throw an exception.
   */
  @Override
  public void setValue(ELContext context, Object value) {
    throw new ELException(LocalMessages.get("error.value.set.rvalue", "<object value expression>"));
  }
View Full Code Here

  /**
   * non-lvalues are always readonly, so throw an exception
   */
  public final void setValue(Bindings bindings, ELContext context, Object value) {
    throw new ELException(LocalMessages.get("error.value.set.rvalue", getStructuralId(bindings)));
  }
View Full Code Here

  public final MethodInfo getMethodInfo(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes) {
    return null;
  }

  public final Object invoke(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes, Object[] paramValues) {
    throw new ELException(LocalMessages.get("error.method.invalid", getStructuralId(bindings)));
  }
View Full Code Here

      Properties properties = new Properties();
      InputStream input = null;
      try {
        properties.load(input = new FileInputStream(file));
      } catch (IOException e) {
        throw new ELException("Cannot read default EL properties", e);
      } finally {
        try {
          input.close();
        } catch (IOException e) {
          // ignore...
View Full Code Here

    }
    if (input != null) {
      try {
        properties.load(input);
      } catch (IOException e) {
        throw new ELException("Cannot read EL properties", e);
      } finally {
        try {
          input.close();
        } catch (IOException e) {
          // ignore...
View Full Code Here

    int cacheSize = defaultCacheSize;
    if (properties != null && properties.containsKey(PROP_CACHE_SIZE)) {
      try {
        cacheSize = Integer.parseInt(properties.getProperty(PROP_CACHE_SIZE));
      } catch (NumberFormatException e) {
        throw new ELException("Cannot parse EL property " + PROP_CACHE_SIZE, e);
      }
    }
    Cache cache = cacheSize > 0 ? new Cache(cacheSize) : null;

    return new TreeStore(builder, cache);
View Full Code Here

      return TypeConverter.DEFAULT;
    }
    try {
      return TypeConverter.class.cast(clazz.newInstance());
    } catch (Exception e) {
      throw new ELException("TypeConverter " + clazz + " could not be instantiated", e);
    }
  }
View Full Code Here

        Constructor<?> constructor = clazz.getConstructor(Feature[].class);
        if (constructor == null) {
          if (features == null || features.length == 0) {
            return TreeBuilder.class.cast(clazz.newInstance());
          } else {
            throw new ELException("Builder " + clazz + " is missing constructor (can't pass features)");
          }
        } else {
          return TreeBuilder.class.cast(constructor.newInstance((Object) features));
        }
      } else {
        return TreeBuilder.class.cast(clazz.newInstance());
      }
    } catch (Exception e) {
      throw new ELException("TreeBuilder " + clazz + " could not be instantiated", e);
    }
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.javax.el.ELException

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.