Skip to content
szabototo89 edited this page Nov 3, 2014 · 9 revisions

CodeSharper

Executors Design Overview

Executors are the main elements of CodeSharper. The main core of an executor is the runnable which contains business logic.

The wrapper and unwrapper components are responsible for conversion of arguments.

However they look tightly coupled, but in implementation every runnable is independent from the executors. You can easily change them.

Standard executor

In CodeSharper StandardExecutor class implements this interpretation logic which was previously described.

Custom executors

You can define and implement custom executors, just implement the IExecutor interface to your class and set the current executor of control flow to it.

// implement this interface to create custom executor
public interface IExecutor
{
    Argument Execute(IRunnable runnable, Argument parameter);
}
Clone this wiki locally