T - The type of the object associated with each parameterpublic class ParameterBinder<T> extends Object
Binding.
For every parameter, addParameter(Type, Annotation[], Object)
can be called with the parameter's type and annotations and ParameterBinder
will create respective Parameter objects for them with
appropriate Bindings.
| Constructor and Description |
|---|
ParameterBinder(ParametricBuilder builder)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(Type type,
Annotation[] annotations,
T target)
Add a parameter.
|
com.google.common.collect.ImmutableList<ParameterData<T>> |
getParameters()
Get an immutable list of parameters added.
|
com.google.common.collect.ImmutableList<Parameter> |
getUserProvidedParameters()
Get an immutable list of parameters that the user must
supply a value for.
|
public ParameterBinder(ParametricBuilder builder)
builder - the builderpublic void addParameter(Type type, Annotation[] annotations, T target)
type - the type of the parameterannotations - the annotations on the parametertarget - the object associated with the parameter (field, etc.)public com.google.common.collect.ImmutableList<ParameterData<T>> getParameters()
public com.google.common.collect.ImmutableList<Parameter> getUserProvidedParameters()
Copyright © 2015. All Rights Reserved.