Class ExecutionContextImpl

  • All Implemented Interfaces:
    ExecutionContext

    public final class ExecutionContextImpl
    extends Object
    implements ExecutionContext
    Execution context implementation.
    Since:
    2.0
    See Also:
    TransformationExecutor
    Interface is not intended to be extended by clients.
    This class is not intended to be subclassed by clients.
    • Constructor Detail

      • ExecutionContextImpl

        public ExecutionContextImpl()
        Constructs a default context for execution.
    • Method Detail

      • getConfigProperty

        public Object getConfigProperty​(String name)
        Description copied from interface: ExecutionContext
        Get the value of the specified configuration property which was set to this context.
        Specified by:
        getConfigProperty in interface ExecutionContext
        Parameters:
        name - the name of the configuration property
        Returns:
        the value assigned to the queried property. Remark:
        It's possible that null is returned in the following cases:
      • no property of the given name has been set
      • null value has been explicitly set

      • The client can distinguish the cases above by using ExecutionContext.getConfigPropertyNames()
      • setConfigProperty

        public void setConfigProperty​(String name,
                                      Object value)
        Sets the value object for the given configuration property
        Parameters:
        name - the name of the property, never null
        value - the value object
      • getConfigPropertyNames

        public Set<String> getConfigPropertyNames()
        Description copied from interface: ExecutionContext
        Gets read-only view of the names of the configuration properties that are set in this context
        Specified by:
        getConfigPropertyNames in interface ExecutionContext
        Returns:
        set of the name strings in undefined order
      • setLog

        public void setLog​(Log log)
        Sets the log implementation to this context.
        Parameters:
        log - the log implementation, never null
      • getLog

        public Log getLog()
        Description copied from interface: ExecutionContext
        Gets the logger implementation assigned to this context.
        Specified by:
        getLog in interface ExecutionContext
        Returns:
        the logger instance, never null
      • getMonitor

        public EvaluationMonitor getMonitor()
        Description copied from interface: ExecutionContext
        Gets the evaluation monitor assigned to this context. The execution engine will query the monitor the check for the user interruption request.
        Specified by:
        getMonitor in interface ExecutionContext
        Returns:
        the monitor implementation, never null
      • getProgressMonitor

        public org.eclipse.core.runtime.IProgressMonitor getProgressMonitor()
        Description copied from interface: ExecutionContext
        Gets the evaluation monitor assigned to this context. The execution engine will query the monitor the check for the user interruption request.
        Specified by:
        getProgressMonitor in interface ExecutionContext
        Returns:
        the monitor implementation, never null
        Since:
        3.4
      • setMonitor

        public void setMonitor​(EvaluationMonitor monitor)
        Deprecated.
        Set evaluation monitor to this context
        Parameters:
        monitor - the monitor implementation, never null
      • setProgressMonitor

        public void setProgressMonitor​(org.eclipse.core.runtime.IProgressMonitor monitor)
        Set evaluation monitor to this context
        Parameters:
        monitor - the monitor implementation, never null
        Since:
        3.4