Class AbstractConfigBuilderBasedLaunchConfigurationDelegate<WorkflowConfigurationType extends AbstractWorkflowBasedRunConfiguration,WorkflowType extends Workflow>
java.lang.Object
de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowBasedLaunchConfigurationDelegate<WorkflowConfigurationType,WorkflowType>
de.uka.ipd.sdq.workflow.launchconfig.AbstractConfigBuilderBasedLaunchConfigurationDelegate<WorkflowConfigurationType,WorkflowType>
- Type Parameters:
WorkflowConfigurationType
- the generic typeWorkflowType
- the generic type
- All Implemented Interfaces:
ILaunchConfigurationDelegate
public abstract class AbstractConfigBuilderBasedLaunchConfigurationDelegate<WorkflowConfigurationType extends AbstractWorkflowBasedRunConfiguration,WorkflowType extends Workflow>
extends AbstractWorkflowBasedLaunchConfigurationDelegate<WorkflowConfigurationType,WorkflowType>
The Class AbstractConfigBuilderBasedLaunchConfigurationDelegate.
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowBasedLaunchConfigurationDelegate
DETAILED_LOG_PATTERN, SHORT_LOG_PATTERN, VERBOSE_LOGGING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected WorkflowConfigurationType
deriveConfiguration
(ILaunchConfiguration configuration, String mode) This method is called as template method and has to be overriden by clients.protected abstract AbstractUIBasedConfigurationBuilder<WorkflowConfigurationType>
getConfigurationBuilder
(ILaunchConfiguration configuration) Template method which is supposed to create the configuration builder object which is able to convert a given launch configuration into a configuration object Clients must override this method.Methods inherited from class de.uka.ipd.sdq.workflow.launchconfig.AbstractWorkflowBasedLaunchConfigurationDelegate
createExceptionHandler, createWorkflow, createWorkflowJob, getLogLevel, getProcess, launch, setupLogger, setupLogging
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.debug.core.model.ILaunchConfigurationDelegate
showCommandLine
-
Constructor Details
-
AbstractConfigBuilderBasedLaunchConfigurationDelegate
public AbstractConfigBuilderBasedLaunchConfigurationDelegate()
-
-
Method Details
-
deriveConfiguration
protected WorkflowConfigurationType deriveConfiguration(ILaunchConfiguration configuration, String mode) throws CoreException Description copied from class:AbstractWorkflowBasedLaunchConfigurationDelegate
This method is called as template method and has to be overriden by clients. Its purpose is to convert the Eclipse ILaunchConfiguration (which is basically an untyped hashmap) into a strongly typed configuration object needed by this workflow's main workflow job.- Specified by:
deriveConfiguration
in classAbstractWorkflowBasedLaunchConfigurationDelegate<WorkflowConfigurationType extends AbstractWorkflowBasedRunConfiguration,
WorkflowType extends Workflow> - Parameters:
configuration
- The ILaunchConfiguration to be converted into a strongly typed configuration object for the main workflow jobmode
- The mode of execution, can be either debug or run- Returns:
- The strongly typed configuration object for the main workflow job
- Throws:
CoreException
- the core exception
-
getConfigurationBuilder
protected abstract AbstractUIBasedConfigurationBuilder<WorkflowConfigurationType> getConfigurationBuilder(ILaunchConfiguration configuration) throws CoreException Template method which is supposed to create the configuration builder object which is able to convert a given launch configuration into a configuration object Clients must override this method.- Parameters:
configuration
- The configuration used to parametrize the configuration builder- Returns:
- The configuration builder object used to convert launch configurations into real configuration objects
- Throws:
CoreException
- the core exception
-