public interface Context
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
resolve(java.lang.reflect.Parameter parameter)
Tries to resolve the given parameter to a object using the predicates
added to the context.
|
PredicateMapper<java.lang.reflect.Parameter,Context> |
use(java.util.function.Function<java.lang.reflect.Parameter,java.lang.Object> function)
Adds the object returned by the given function by binding it to the given
predicate.
|
PredicateMapper<java.lang.reflect.Parameter,Context> |
use(java.lang.Object object)
Adds the given object to the context by binding it to the given predicate.
|
PredicateMapper<java.lang.reflect.Parameter,Context> |
use(java.util.function.Supplier supplier)
Adds the object supplied by the given supplier by binding it to the given
predicate.
|
PredicateMapper<java.lang.reflect.Parameter,Context> use(java.lang.Object object)
object
- the object to addPredicateMapper<java.lang.reflect.Parameter,Context> use(java.util.function.Supplier supplier)
supplier
- the supplier to create the objectPredicateMapper<java.lang.reflect.Parameter,Context> use(java.util.function.Function<java.lang.reflect.Parameter,java.lang.Object> function)
function
- the function to usejava.lang.Object resolve(java.lang.reflect.Parameter parameter) throws UnresolvableValueException
parameter
- the parameter to resolve the valueUnresolvableValueException
- if the value cannot be resolved