org.objectweb.dsrg.sofa.deployment
Class DeploymentDockFactory

java.lang.Object
  extended by org.objectweb.dsrg.sofa.deployment.DeploymentDockFactory

public class DeploymentDockFactory
extends java.lang.Object

A helper class for static dock creation


Method Summary
static DeploymentDockImpl createDeploymentDock(java.lang.String name, java.lang.String host, java.lang.String port, java.lang.String[] dockCapabilities)
          Creates a new deployment dock
static DeploymentDockImpl getCurrentDock()
          Gets the current dock (each JVM runs only one)
protected static void handleDockCapability(java.lang.String capab)
           
protected static void handleOSGi()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDeploymentDock

public static DeploymentDockImpl createDeploymentDock(java.lang.String name,
                                                      java.lang.String host,
                                                      java.lang.String port,
                                                      java.lang.String[] dockCapabilities)
                                               throws SOFAException
Creates a new deployment dock

Parameters:
name - The name of the dock
host - Hostname of the machine running the deployment dock registry
port - Port where the deployment dock registry runs
dockCapabilities - array of dock capabilities which should be provided
Returns:
new deployment dock
Throws:
SOFAException

handleDockCapability

protected static void handleDockCapability(java.lang.String capab)

handleOSGi

protected static void handleOSGi()

getCurrentDock

public static DeploymentDockImpl getCurrentDock()
Gets the current dock (each JVM runs only one)

Returns:
The dock running in the current JVM