org.ow2.jasmine.monitoring.eos.common.jndilocator
Class ServiceLocator

java.lang.Object
  extended by org.ow2.jasmine.monitoring.eos.common.jndilocator.ServiceLocator

public class ServiceLocator
extends java.lang.Object


Method Summary
 javax.naming.Context getInitialContext()
          Get initial context - Carol JNDI
 javax.naming.Context getInitialContext(java.lang.String url)
          Get initial context - Carol JNDI
static ServiceLocator getInstance()
           
 java.lang.Object getRemoteObject(java.lang.String jndiName)
          Gets the remote object, adds it to the cache and returns it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ServiceLocator getInstance()

getInitialContext

public javax.naming.Context getInitialContext()
                                       throws ServiceLocatorException
Get initial context - Carol JNDI

Returns:
Context
Throws:
NamingException, - ServiceLocatorException
ServiceLocatorException

getInitialContext

public javax.naming.Context getInitialContext(java.lang.String url)
                                       throws ServiceLocatorException
Get initial context - Carol JNDI

Parameters:
url - Accepts a string that represents the Context.PROVIDER_URL parameter.
Returns:
Context
Throws:
NamingException, - ServiceLocatorException
ServiceLocatorException

getRemoteObject

public java.lang.Object getRemoteObject(java.lang.String jndiName)
                                 throws ServiceLocatorException
Gets the remote object, adds it to the cache and returns it.

Parameters:
jndiName -
Returns:
Object
Throws:
ServiceLocatorException


Copyright © 2011 OW2 Consortium. All Rights Reserved.