public interface ParameterResolver
An order can also be specified in case more than one ParameterResolver
supports a MethodParameter
.
See AnnotationAwareOrderComparator
for details..
Modifier and Type | Method and Description |
---|---|
List<CompletionProposal> |
complete(org.springframework.core.MethodParameter parameter,
CompletionContext context)
Invoked during TAB completion.
|
Stream<ParameterDescription> |
describe(org.springframework.core.MethodParameter parameter)
Describe a supported parameter, so that integrated help can be generated.
|
ValueResult |
resolve(org.springframework.core.MethodParameter methodParameter,
List<String> words)
Turn the given textual input into an actual object, maybe using some conversion or lookup mechanism.
|
boolean |
supports(org.springframework.core.MethodParameter parameter)
Should return true if this resolver recognizes the given method parameter (e.g. it
has the correct annotation or the correct type).
|
boolean supports(org.springframework.core.MethodParameter parameter)
ValueResult resolve(org.springframework.core.MethodParameter methodParameter, List<String> words)
Stream<ParameterDescription> describe(org.springframework.core.MethodParameter parameter)
Typical implementations will return a one element stream result, but some may return several (for example if binding several words to a POJO).
List<CompletionProposal> complete(org.springframework.core.MethodParameter parameter, CompletionContext context)
CompletionContext
can be interpreted as the start
of a supported MethodParameter
value, one or several proposals should be returned.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.