| java.lang.Object com.nabhinc.ws.core.LocalRegistry
LocalRegistry | public class LocalRegistry (Code) | | Maintains a mapping between service ids and services for local services.
This class is used both on the server and client side. On the server side, it
maintains a two way mapping between a Web service and its id. On the client
side, it maintains a two way mapping between a listener and its ID.
author: Padmanabh Dabke author: (c) 2005 Nabh Information Systems, Inc. All Rights Reserved. |
Method Summary | |
public static void | export(Object service) Creates an ID for the given service and creates a two way mapping between
the service and the ID. | protected static void | export(Object service, String id) Adds a two way mapping between
the service and the ID. | public static String | getID(Object service) Get ID of a service. | public static Object | getService(String id) Get service corresponding to the specified ID. | public static void | unexport(Object rr) Removes the service - ID mapping from the hashtable. |
export | public static void export(Object service)(Code) | | Creates an ID for the given service and creates a two way mapping between
the service and the ID.
|
export | protected static void export(Object service, String id)(Code) | | Adds a two way mapping between
the service and the ID.
|
getID | public static String getID(Object service)(Code) | | Get ID of a service.
Service ID Parameters: service - Service whose ID is to be looked up |
getService | public static Object getService(String id)(Code) | | Get service corresponding to the specified ID.
Service Parameters: id - Service ID |
unexport | public static void unexport(Object rr)(Code) | | Removes the service - ID mapping from the hashtable.
|
|
|