Package org.osgi.framework

Examples of org.osgi.framework.ServiceException


      return invokeSync(remoteCall);
    } catch (Throwable t) {
      if (t instanceof ServiceException)
        throw t;
      // rethrow as service exception
      throw new ServiceException("Service exception on remote service proxy rsid=" + getRemoteServiceID(), ServiceException.REMOTE, t); //$NON-NLS-1$
    }
  }
View Full Code Here


   * @since 8.2
   */
  protected Future callFutureAsync(final IRemoteCall call) {
    ExecutorService executorService = getFutureExecutorService(call);
    if (executorService == null)
      throw new ServiceException("future executor service is null.  .  Cannot callAsync remote method=" + call.getMethod()); //$NON-NLS-1$
    return executorService.submit(new Callable() {
      public Object call() throws Exception {
        return callSync(call);
      }
    });
View Full Code Here

TOP

Related Classes of org.osgi.framework.ServiceException

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.