-
Notifications
You must be signed in to change notification settings - Fork 0
Home
szabototo89 edited this page Nov 3, 2014
·
9 revisions
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.
In CodeSharper StandardExecutor
class implements this interpretation logic which was previously described.
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);
}