org.jdesktop.jdic.desktop.internal
Class ServiceManager

java.lang.Object
  extended by org.jdesktop.jdic.desktop.internal.ServiceManager

public class ServiceManager
extends java.lang.Object

The ServiceManager class provides static fields to refer to the available services, and static methods to get the approprate service objects with the given service name. This class is abstract and final and cannot be instantiated.

See Also:
ServiceManagerStub, LaunchService, BrowserService, MailerService

Field Summary
static java.lang.String BROWSER_SERVICE
          Constant name for looking up the browser service object.
static java.lang.String LAUNCH_SERVICE
          Constant name for looking up the launch service object.
static java.lang.String MAILER_SERVICE
          Constant name for looking up the mailer service object.
 
Method Summary
static java.lang.Object getService(java.lang.String serviceName)
          Gets a service object with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAUNCH_SERVICE

public static final java.lang.String LAUNCH_SERVICE
Constant name for looking up the launch service object.

See Also:
Constant Field Values

BROWSER_SERVICE

public static final java.lang.String BROWSER_SERVICE
Constant name for looking up the browser service object.

See Also:
Constant Field Values

MAILER_SERVICE

public static final java.lang.String MAILER_SERVICE
Constant name for looking up the mailer service object.

See Also:
Constant Field Values
Method Detail

getService

public static java.lang.Object getService(java.lang.String serviceName)
                                   throws java.lang.NullPointerException
Gets a service object with the given name. The given service name should be one of the pre-defined service names.

Parameters:
serviceName - the given service name.
Returns:
the appropriate service object.
Throws:
java.lang.NullPointerException - if the given service name is null.
See Also:
LaunchService, BrowserService, MailerService


Copyright © 2005 Sun Microsystems All Rights Reserved.