home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / javaws.jar / javax / jnlp / ServiceManager.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  702 b   |  28 lines

  1. package javax.jnlp;
  2.  
  3. public final class ServiceManager {
  4.    private static ServiceManagerStub _stub = null;
  5.  
  6.    private ServiceManager() {
  7.    }
  8.  
  9.    public static Object lookup(String var0) throws UnavailableServiceException {
  10.       if (_stub != null) {
  11.          return _stub.lookup(var0);
  12.       } else {
  13.          throw new UnavailableServiceException("uninitialized");
  14.       }
  15.    }
  16.  
  17.    public static String[] getServiceNames() {
  18.       return _stub != null ? _stub.getServiceNames() : null;
  19.    }
  20.  
  21.    public static synchronized void setServiceManagerStub(ServiceManagerStub var0) {
  22.       if (_stub == null) {
  23.          _stub = var0;
  24.       }
  25.  
  26.    }
  27. }
  28.