public static class ReflectiveModelExecutor.Builder extends java.lang.Object implements Executor.Builder<ReflectiveModelExecutor>
ReflectiveModelExecutor.| Constructor and Description |
|---|
Builder(HierarchyProvider hierarchy)
Construct the builder.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends ReflectiveModel<T>> |
addSupportedModel(ReflectiveModelExecutor.SupportedModelInfo<T> modelInfo)
Add a model to support.
|
ReflectiveModelExecutor.Builder |
addSupportedModels(java.util.Collection<ReflectiveModelExecutor.SupportedModelInfo<? extends ReflectiveModel<?>>> modelInfo)
Add a models to support.
|
ReflectiveModelExecutor |
build()
Build an executor.
|
public Builder(HierarchyProvider hierarchy)
hierarchy - the class hierarchy.public <T extends ReflectiveModel<T>> ReflectiveModelExecutor.Builder addSupportedModel(ReflectiveModelExecutor.SupportedModelInfo<T> modelInfo)
T - recursive generic type of the model.modelInfo - information on which model to support and how to support it.public ReflectiveModelExecutor.Builder addSupportedModels(java.util.Collection<ReflectiveModelExecutor.SupportedModelInfo<? extends ReflectiveModel<?>>> modelInfo)
modelInfo - information on which models to support and how to support each of them.public ReflectiveModelExecutor build()
Executor.Builderbuild in interface Executor.Builder<ReflectiveModelExecutor>