org.openmdx.compatibility.base.application.cci
Interface ServiceLocator_1_0

All Known Implementing Classes:
JndiServiceLocator_1, SimpleServiceLocator_1, StandardServiceLocator_1

Deprecated. in favour of Standard JNDI access

public interface ServiceLocator_1_0

The ServiceLocator interface


Method Summary
 void bind(String registrationId, Object object)
          Deprecated. Bind a service to the registry
 Enumeration listBindings(String name)
          Deprecated.  
 Object lookup(String registrationId)
          Deprecated. Lookup a service
 void unbind(String registrationId)
          Deprecated. Removes a service from the registry
 

Method Detail

lookup

Object lookup(String registrationId)
              throws ServiceException
Deprecated. 
Lookup a service

Parameters:
registrationId - A colon-separated list of naming elements
Returns:
An object, usually the service's connection factory
Throws:
ServiceException

bind

void bind(String registrationId,
          Object object)
          throws ServiceException
Deprecated. 
Bind a service to the registry

Parameters:
registrationId - A colon-separated list of naming elements
object - The object to be bound, usually the service's connection factory
Throws:
ServiceException

unbind

void unbind(String registrationId)
            throws ServiceException
Deprecated. 
Removes a service from the registry

Parameters:
registrationId - A colon-separated list of naming elements
Throws:
ServiceException

listBindings

Enumeration listBindings(String name)
                         throws ServiceException
Deprecated. 
Throws:
ServiceException


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.