public class DefaultExecContextFactory extends Object implements org.azyva.dragom.execcontext.ExecContextFactory, org.azyva.dragom.execcontext.WorkspaceExecContextFactory
ExecContextFactory implementation that manages
ExecContext using a workspace directory in the file system. Here the
term "workspace" is used to refer to the root workspace directory. Elsewhere
the term "workspace directory" is generally used to refer to a directory within
the root workspace directory. We hope that no confusion will arise.
A static Map of workspace Path to ExecContext instances is used in order to reuse ExecContext instances. This is useful in case a single JVM instance is used for multiple tool executions (NaigGun can be useful in that regard).
This ExecContextFactory supports the workspace directory concept and therefore
implements WorkspaceExecContextFactory.
The ExecContext implementation implements ToolLifeCycleExecContext and
therefore honors ToolLifeCycleExecContextPlugin implemented by
ExecContextPlugin's.
When obtaining an ExecContext using
getExecContext(java.util.Properties) the workspace directory does
not need to exist and is automatically created and initialized if necessary.
| Constructor and Description |
|---|
DefaultExecContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.azyva.dragom.execcontext.ExecContext |
getExecContext(Properties propertiesInit)
Since this
ExecContextFactory implements WorkspaceExecContextFactory,
this method returns an ExecContext corresponding to the workspace
directory. |
String |
getWorkspaceDirInitProperty() |
public org.azyva.dragom.execcontext.ExecContext getExecContext(Properties propertiesInit)
ExecContextFactory implements WorkspaceExecContextFactory,
this method returns an ExecContext corresponding to the workspace
directory.getExecContext in interface org.azyva.dragom.execcontext.ExecContextFactorypropertiesInit - Initialization properties.public String getWorkspaceDirInitProperty()
getWorkspaceDirInitProperty in interface org.azyva.dragom.execcontext.WorkspaceExecContextFactoryCopyright © 2015–2016 AZYVA INC.. All rights reserved.