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

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

Deprecated. in favour of Standard JNDI access

public class StandardServiceLocator_1
extends JndiServiceLocator_1

This service locator allowas native registration and lookup as well as JNDI lookups.


Constructor Summary
StandardServiceLocator_1()
          Deprecated. Allow dynamic class loading
 
Method Summary
 void bind(String registrationId, Object object)
          Deprecated. Bind a service to the registry
static StandardServiceLocator_1 getInstance()
          Deprecated. Get the most recently created StandardServiceLocator_1 instance.
static boolean hasInstance()
          Deprecated. Tells whether we are in an applicatioon server environment
 Enumeration listBindings(String registrationId)
          Deprecated.  
 Object lookup(String registrationId)
          Deprecated. Lookup a service
 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, initialContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardServiceLocator_1

public StandardServiceLocator_1()
Deprecated. 
Allow dynamic class loading

Method Detail

getInstance

public static StandardServiceLocator_1 getInstance()
Deprecated. 
Get the most recently created StandardServiceLocator_1 instance.

This method never returns null.

Returns:
the most recently created StandardServiceLocator_1 instance

hasInstance

public static boolean hasInstance()
Deprecated. 
Tells whether we are in an applicatioon server environment

Returns:
true if a StandardServiceLocator_1 instance has been created

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

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

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

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


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