com.sodius.mdw.core
Class MDWorkbenchFactory

java.lang.Object
  extended by com.sodius.mdw.core.MDWorkbenchFactory

public final class MDWorkbenchFactory
extends Object

Main entry-point to instantiate a MDWorkbench.

This class cannot be instantiated or subclassed by clients.


Method Summary
static MDWorkbench create()
          Creates a new MDWorkbench.
static MDWorkbench create(String applicationID)
          Creates a new MDWorkbench based on the specified application ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static MDWorkbench create()
                          throws CoreException
Creates a new MDWorkbench.

Returns:
a new workbench.
Throws:
CoreException - if the workbench could not be instantiated. Reasons include :
  • No license could be retrieved.

create

public static MDWorkbench create(String applicationID)
                          throws CoreException
Creates a new MDWorkbench based on the specified application ID.

Parameters:
applicationID - the host application MDWorkbench must be connected to.
Returns:
a new workbench.
Throws:
CoreException - if the workbench could not be instantiated. Reasons include :
  • The application ID is invalid
  • No license could be retrieved for the specified application.