org.openmdx.kernel.naming.initial
Class ContextFactory

java.lang.Object
  extended by org.openmdx.kernel.naming.initial.ContextFactory
All Implemented Interfaces:
InitialContextFactory

public class ContextFactory
extends Object
implements InitialContextFactory

openMDX Native Context Factory


Constructor Summary
ContextFactory()
          Constructor
 
Method Summary
 Context getInitialContext(Hashtable environment)
           
static String getProviderURL()
          Get the Naming Service's Provider URL.
static boolean hasProviderURL()
          Tells whether the Naming Service's is accessible through RMI.
static void setProviderURL(String providerURL)
          Set the provider URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextFactory

public ContextFactory()
Constructor

Method Detail

getInitialContext

public Context getInitialContext(Hashtable environment)
                          throws NamingException
Specified by:
getInitialContext in interface InitialContextFactory
Throws:
NamingException

getProviderURL

public static String getProviderURL()
Get the Naming Service's Provider URL.

Returns:
the Naming Service's Provider URL

hasProviderURL

public static boolean hasProviderURL()
Tells whether the Naming Service's is accessible through RMI.

Returns:
true if the Naming Service is accessibla through RMI

setProviderURL

public static void setProviderURL(String providerURL)
Set the provider URL

Parameters:
providerURL -


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