protected static class TargetMethodAnnotationDrivenBinder.DelegationProcessor extends Object
TargetMethodAnnotationDrivenBinder
for performing its actual logic. By outsourcing this logic to this helper class, a cleaner implementation
can be provided.Modifier and Type | Class and Description |
---|---|
protected static interface |
TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler
A handler is responsible for processing a parameter's binding.
|
Modifier | Constructor and Description |
---|---|
protected |
DelegationProcessor(Map<? extends TypeDescription,? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders)
Creates a new delegation processor.
|
Modifier and Type | Method and Description |
---|---|
protected static TargetMethodAnnotationDrivenBinder.DelegationProcessor |
of(List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders)
Creates a new delegation processor.
|
protected TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler |
prepare(ParameterDescription target)
Locates a handler which is responsible for processing the given parameter.
|
protected DelegationProcessor(Map<? extends TypeDescription,? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders)
parameterBinders
- A mapping of parameter binders by their handling type.protected static TargetMethodAnnotationDrivenBinder.DelegationProcessor of(List<? extends TargetMethodAnnotationDrivenBinder.ParameterBinder<?>> parameterBinders)
parameterBinders
- A list of parameter binder delegates. Each such delegate is responsible for creating
a MethodDelegationBinder.ParameterBinding
for a specific annotation.protected TargetMethodAnnotationDrivenBinder.DelegationProcessor.Handler prepare(ParameterDescription target)
target
- The target parameter being handled.Copyright © 2014–2018. All rights reserved.