org.mmbase.bridge
Class ContextProvider

java.lang.Object
  |
  +--org.mmbase.bridge.ContextProvider

public class ContextProvider
extends java.lang.Object

Main class to aquire CloudContexts

Since:
MMBase-1.5
Version:
$Id: ContextProvider.java,v 1.2 2002/01/31 10:05:07 pierre Exp $
Author:
Kees Jongenburger

Constructor Summary
ContextProvider()
           
 
Method Summary
static CloudContext getCloudContext(java.lang.String uri)
          Factory method to get an instance of a CloudContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextProvider

public ContextProvider()
Method Detail

getCloudContext

public static CloudContext getCloudContext(java.lang.String uri)
Factory method to get an instance of a CloudContext. Depending on the uri parameter given the CloudContext might be a local context or a remote context (rmi)
Parameters:
uri - an identifier for the context
possible values:
  • local : will return a local context
  • rmi://hostname:port/contextname : will return a remote context
  • a null parameter: will return a local context
Returns:
a cloud context
Throws:
java.lang.RuntimeException - if anything wrong happends


MMBase 2002