Package org.onebusaway.collections

Examples of org.onebusaway.collections.PropertyPathExpression


    String keyProperty = cacheableArgumentAnnotation.keyProperty();

    cacheRefreshIndicator |= cacheableArgumentAnnotation.cacheRefreshIndicator();

    if (!(keyProperty == null || keyProperty.equals(""))) {
      PropertyPathExpression expression = new PropertyPathExpression(
          keyProperty);
      type = expression.initialize(type);
      CacheableObjectKeyFactory factory = getKeyFactoryForParameterType(type,
          cacheRefreshIndicator);
      return new PropertyPathExpressionCacheableObjectKeyFactory(expression,
          factory);
    }
View Full Code Here


  public FederatedByCoordinateBoundsMethodInvocationHandlerImpl(Method method,
      int argumentIndex, String expression) {
    _argumentIndex = argumentIndex;
    if (expression != null && expression.length() > 0) {
      _expression = new PropertyPathExpression(expression);
      Class<?>[] parameterTypes = method.getParameterTypes();
      _expression.initialize(parameterTypes[argumentIndex]);
    }
  }
View Full Code Here

    _expressions = new PropertyPathExpression[expressions.length];

    for (int i = 0; i < expressions.length; i++) {
      String expression = expressions[i];
      if (expression != null && expression.length() > 0) {
        _expressions[i] = new PropertyPathExpression(expression);
        Class<?>[] parameterTypes = method.getParameterTypes();
        _expressions[i].initialize(parameterTypes[argumentIndices[i]]);
      }
    }
  }
View Full Code Here

    List<CoordinatePoint> points = new ArrayList<CoordinatePoint>();

    for (int i = 0; i < _argumentIndices.length; i++) {
      Object value = args[_argumentIndices[i]];
      PropertyPathExpression expression = _expressions[i];
      if (expression != null)
        value = expression.invoke(value);
      CoordinatePoint point = (CoordinatePoint) value;
      points.add(point);
    }

    FederatedService service = collection.getServiceForLocations(points);
View Full Code Here

  public FederatedByEntityIdMethodInvocationHandlerImpl(Method method,
      int argumentIndex, String expression) {
    _argumentIndex = argumentIndex;
    if (expression != null && expression.length() > 0) {
      _expression = new PropertyPathExpression(expression);
      Class<?>[] parameterTypes = method.getParameterTypes();
      _expression.initialize(parameterTypes[argumentIndex]);
    }
  }
View Full Code Here

  private List<PropertyPathExpression> compileExpressions(Method method,
      int argumentIndex, String[] properties) {
    List<PropertyPathExpression> expressions = new ArrayList<PropertyPathExpression>(
        properties.length);
    for (String property : properties) {
      PropertyPathExpression expression = new PropertyPathExpression(property);
      Class<?>[] parameterTypes = method.getParameterTypes();
      expression.initialize(parameterTypes[argumentIndex]);
      expressions.add(expression);
    }
    return expressions;
  }
View Full Code Here

  private PropertyPathExpression _expression = null;

  public FederatedByAgencyIdMethodInvocationHandlerImpl(Method method, int argumentIndex, String expression) {
    _argumentIndex = argumentIndex;
    if (expression != null && expression.length() > 0) {
      _expression = new PropertyPathExpression(expression);
      Class<?>[] parameterTypes = method.getParameterTypes();
      _expression.initialize(parameterTypes[argumentIndex]);
    }
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.collections.PropertyPathExpression

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.