All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.wizards.services.ServiceManager

java.lang.Object
   |
   +----com.sun.wizards.services.ServiceManager

public class ServiceManager
extends Object
The ServiceManager follows the singleton design pattern. This object ensures that only one copy of a given service is used.


Variable Index

 o LOCAL
 o REMOTE

Constructor Index

 o ServiceManager()

Method Index

 o closeServices()
Shut down all open services.
 o getDesktopService(int)
Returns a desktop service object for the specified origin.
 o getLogService(int, WizardState)
Returns a log service object for the specified origin.
 o getRegistryService(int)
Returns a registry service object for the specified origin.

Variables

 o LOCAL
 public static final int LOCAL
 o REMOTE
 public static final int REMOTE

Constructors

 o ServiceManager
 public ServiceManager()

Methods

 o getRegistryService
 public static Object getRegistryService(int origin)
Returns a registry service object for the specified origin.

Parameters:
origin - Either LOCAL or REMOTE.
Returns:
A registry service object for the specified origin.
 o getLogService
 public static Object getLogService(int origin,
                                    WizardState state)
Returns a log service object for the specified origin.

Parameters:
origin - Either LOCAL or REMOTE.
Returns:
A log service object for the specified origin.
 o getDesktopService
 public static Object getDesktopService(int origin)
Returns a desktop service object for the specified origin.

Parameters:
origin - Either LOCAL or REMOTE.
Returns:
A desktop service object for the specified origin.
 o closeServices
 public static void closeServices()
Shut down all open services. This should be done prior to exiting the wizard.


All Packages  Class Hierarchy  This Package  Previous  Next  Index