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.4.1 2003/07/01 09:17:10 keesj 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.
static CloudContext getDefaultCloudContext()
          this method returns the default cloud context.
 
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

getDefaultCloudContext

public static CloudContext getDefaultCloudContext()
this method returns the default cloud context. it is equals to LocalContext.getCloudContext();
Since:
MMBase-1.6.4 (backport from MMBase-1.7 for compatibility)


MMBase build 1.6.5.20030923