org.jdesktop.jdic.tray.internal
Class ServiceManager

java.lang.Object
  extended by org.jdesktop.jdic.tray.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

Field Summary
static java.lang.String SYSTEM_TRAY_SERVICE
          Constant name for looking up the SystemTray service object.
static java.lang.String TRAY_APPLET_SERVICE
          Constant name for looking up the TrayApplet service object.
static java.lang.String TRAY_ICON_SERVICE
          Constant name for looking up the TrayIcon 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

SYSTEM_TRAY_SERVICE

public static final java.lang.String SYSTEM_TRAY_SERVICE
Constant name for looking up the SystemTray service object.

See Also:
Constant Field Values

TRAY_ICON_SERVICE

public static final java.lang.String TRAY_ICON_SERVICE
Constant name for looking up the TrayIcon service object.

See Also:
Constant Field Values

TRAY_APPLET_SERVICE

public static final java.lang.String TRAY_APPLET_SERVICE
Constant name for looking up the TrayApplet 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.


Copyright © 2005 Sun Microsystems All Rights Reserved.