org.openmdx.compatibility.base.application.spi
Class SimpleServiceLocator_1

java.lang.Object
  extended by org.openmdx.compatibility.base.application.spi.JndiServiceLocator_1
      extended by org.openmdx.compatibility.base.application.spi.SimpleServiceLocator_1
All Implemented Interfaces:
Manageable_1_0, ServiceLocator_1_0

Deprecated. in favour of Standard JNDI access

public class SimpleServiceLocator_1
extends JndiServiceLocator_1

SimpleServiceLocator_1


Constructor Summary
SimpleServiceLocator_1()
          Deprecated. Constructor
SimpleServiceLocator_1(Path containerInstance)
          Deprecated. Constructor
 
Method Summary
 void bind(String registrationId, Object object)
          Deprecated. Bind a service to the registry
 Context initialContext()
          Deprecated. Gets or creates an initial context
 Enumeration listBindings(String registrationId)
          Deprecated.  
 Object lookup(String registrationId)
          Deprecated. Lookup a service
protected static String toJndiName(String registrationId)
          Deprecated. Make the registration id JNDI compliant
 void unbind(String registrationId)
          Deprecated. Removes a service from the registry
 
Methods inherited from class org.openmdx.compatibility.base.application.spi.JndiServiceLocator_1
activate, deactivate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleServiceLocator_1

public SimpleServiceLocator_1()
Deprecated. 
Constructor


SimpleServiceLocator_1

public SimpleServiceLocator_1(Path containerInstance)
Deprecated. 
Constructor

Parameters:
containerInstance -
Method Detail

bind

public void bind(String registrationId,
                 Object object)
          throws ServiceException
Deprecated. 
Description copied from interface: ServiceLocator_1_0
Bind a service to the registry

Specified by:
bind in interface ServiceLocator_1_0
Overrides:
bind in class JndiServiceLocator_1
Parameters:
registrationId - A colon-separated list of naming elements
object - The object to be bound, usually the service's connection factory
Throws:
ServiceException

listBindings

public Enumeration listBindings(String registrationId)
                         throws ServiceException
Deprecated. 
Specified by:
listBindings in interface ServiceLocator_1_0
Overrides:
listBindings in class JndiServiceLocator_1
Throws:
ServiceException

lookup

public Object lookup(String registrationId)
              throws ServiceException
Deprecated. 
Description copied from interface: ServiceLocator_1_0
Lookup a service

Specified by:
lookup in interface ServiceLocator_1_0
Overrides:
lookup in class JndiServiceLocator_1
Parameters:
registrationId - A colon-separated list of naming elements
Returns:
An object, usually the service's connection factory
Throws:
ServiceException

unbind

public void unbind(String registrationId)
            throws ServiceException
Deprecated. 
Description copied from interface: ServiceLocator_1_0
Removes a service from the registry

Specified by:
unbind in interface ServiceLocator_1_0
Overrides:
unbind in class JndiServiceLocator_1
Parameters:
registrationId - A colon-separated list of naming elements
Throws:
ServiceException

toJndiName

protected static String toJndiName(String registrationId)
Deprecated. 
Make the registration id JNDI compliant


initialContext

public Context initialContext()
Deprecated. 
Description copied from class: JndiServiceLocator_1
Gets or creates an initial context

Overrides:
initialContext in class JndiServiceLocator_1
Returns:
the service locator specific initial context


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