Package org.onebusaway.federations.annotations

Examples of org.onebusaway.federations.annotations.FederatedServiceMethodInvocationHandler


  }

  private Map<Method, FederatedServiceMethodInvocationHandler> getMethodHandlers() {
    Map<Method, FederatedServiceMethodInvocationHandler> handlers = new HashMap<Method, FederatedServiceMethodInvocationHandler>();
    for (Method method : _serviceInterface.getDeclaredMethods()) {
      FederatedServiceMethodInvocationHandler handler = _handlerFactory.getHandlerForMethod(method);
      handlers.put(method, handler);
    }
    return handlers;
  }
View Full Code Here


    _collection = collection;
  }

  public Object invoke(Object proxy, Method method, Object[] args)
      throws Throwable {
    FederatedServiceMethodInvocationHandler methodHandler = _methodHandlers.get(method);

    if (method.getDeclaringClass() == Object.class)
      return method.invoke(this, args);

    try {
      return methodHandler.invoke(_collection, method, args);
    } catch (Throwable ex) {
      if (ex instanceof InvocationTargetException) {
        InvocationTargetException ite = (InvocationTargetException) ex;
        ex = ite.getTargetException();
      }
View Full Code Here

TOP

Related Classes of org.onebusaway.federations.annotations.FederatedServiceMethodInvocationHandler

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.