Package org.springframework.osgi.service.importer

Examples of org.springframework.osgi.service.importer.ServiceProxyDestroyedException


      return (Object) retryTemplate.execute(new DefaultRetryCallback() {

        public Object doWithRetry() {
          // before checking for a service, check whether the proxy is still valid
          if (destroyed && !isDuringDestruction)
            throw new ServiceProxyDestroyedException();

          return (wrapper != null) ? wrapper.getService() : null;
        }
      });
    }
View Full Code Here


  }

  protected Object getTarget() {
    synchronized (lock) {
      if (destroyed)
        throw new ServiceProxyDestroyedException();
    }

    // check if the service is alive first
    if (reference.getBundle() != null) {
      // since requesting for a service requires additional work
View Full Code Here

  private class ServiceLookUpCallback extends DefaultRetryCallback {

    public Object doWithRetry() {
      // before checking for a service, check whether the proxy is still valid
      if (destroyed && !isDuringDestruction)
        throw new ServiceProxyDestroyedException();

      return (wrapper != null) ? wrapper.getService() : null;
    }
View Full Code Here

TOP

Related Classes of org.springframework.osgi.service.importer.ServiceProxyDestroyedException

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.