Package org.springframework.osgi.service

Examples of org.springframework.osgi.service.ServiceUnavailableException


  public Object getTarget() {
    Object target = lookupService();

    // nothing found
    if (target == null) {
      throw new ServiceUnavailableException(filter);
    }
    return target;
  }
View Full Code Here


  /**
   * Check to see whether at least one service is available.
   */
  protected void mandatoryServiceCheck() {
    if (serviceRequiredAtStartup && serviceProxies.isEmpty())
      throw new ServiceUnavailableException(filter);
  }
View Full Code Here

  /**
   * Check to see whether at least one service is available.
   */
  protected void mandatoryServiceCheck() {
    if (serviceRequiredAtStartup && serviceProxies.isEmpty())
      throw new ServiceUnavailableException(filter);
  }
View Full Code Here

      Object target = bundleContext.getService(reference);
      if (target != null)
        return target;
    }
    // throw exception
    throw new ServiceUnavailableException(reference);
  }
View Full Code Here

  public Object getTarget() {
    Object target = lookupService();

    // nothing found
    if (target == null) {
      throw new ServiceUnavailableException(filter);
    }
    return target;
  }
View Full Code Here

TOP

Related Classes of org.springframework.osgi.service.ServiceUnavailableException

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.