Interface Executor.Builder<T extends Executor>

All Known Implementing Classes:
ClassLoaderModelExecutor.Builder, ClassModelExecutor.Builder, ObjectGetClassExecutor.Builder, ReflectiveModelExecutor.Builder, StringReflectionExecutor.Builder
Enclosing interface:
Executor

public static interface Executor.Builder<T extends Executor>
A builder for the executor. It's important for each concrete executor to provide one in order to be able to construct a fresh copy of the executor when needed

For example this happens in ExecutingInvocationUnit.Builder, since each invocation unit should use different executors in order to avoid undesired side effects.

  • Method Summary

    Modifier and Type
    Method
    Description
    Build an executor.
  • Method Details

    • build

      T build()
      Build an executor. If the executor keeps internal state this method needs to guarantee that no data is shared between the different implementations (unless needed by design, e.g., for caching).