T
- The annotation used to identify a to methodF
- The annotation used to identify a from methodpublic class AbstractAnnotationMatchingConverterProvider<T extends Annotation,F extends Annotation> extends Object implements ConverterProvider
Constructor and Description |
---|
AbstractAnnotationMatchingConverterProvider() |
Modifier and Type | Method and Description |
---|---|
protected List<Class<? extends Annotation>> |
determineQualifiers(Annotation bindingAnnotation,
Annotation... allAnnotations)
Returns the qualifiers for this method, setting the Default qualifier if none are found
Qualifiers can be either explicitly applied to the method, or implicit on account of being found
in the annotation itself (for example @Plus would have a default binding scope of @PlusOperator)
|
protected boolean |
isFromMatch(Constructor<?> constructor)
Subclasses can override this template method with their own matching strategy
|
protected boolean |
isFromMatch(Method method)
Subclasses can override this template method with their own matching strategy
|
protected boolean |
isToMatch(Method method)
Subclasses can override this template method with their own matching strategy
|
<I,O> Map<ConverterKey<?,?>,Constructor<O>> |
matchFromConstructors(Class<O> cls)
Match constructors that can perform a from operation
|
<I,O> Map<ConverterKey<?,?>,Method> |
matchFromMethods(Class<?> cls)
Match methods that can perform a from operation
|
<I,O> Map<ConverterKey<?,?>,Method> |
matchToMethods(Class<?> cls)
Match methods that can perform a to operation
|
public AbstractAnnotationMatchingConverterProvider()
public <I,O> Map<ConverterKey<?,?>,Method> matchToMethods(Class<?> cls)
ConverterProvider
matchToMethods
in interface ConverterProvider
I
- Input typeO
- Output typecls
- The class being inspectedpublic <I,O> Map<ConverterKey<?,?>,Constructor<O>> matchFromConstructors(Class<O> cls)
ConverterProvider
matchFromConstructors
in interface ConverterProvider
I
- Input typeO
- Output typecls
- The class being inspectedpublic <I,O> Map<ConverterKey<?,?>,Method> matchFromMethods(Class<?> cls)
ConverterProvider
matchFromMethods
in interface ConverterProvider
I
- Input typeO
- Output typecls
- The class being inspectedprotected boolean isToMatch(Method method)
method
- The method to be determinedprotected boolean isFromMatch(Constructor<?> constructor)
constructor
- The constructor to be determinedprotected boolean isFromMatch(Method method)
method
- The method to be determinedprotected List<Class<? extends Annotation>> determineQualifiers(Annotation bindingAnnotation, Annotation... allAnnotations)
bindingAnnotation
- The Annotation for the binding to check if it specifies a binding scope.allAnnotations
- Array of Annotations on the target method to check if they specify a scopeCopyright © 2010–2018 Jadira Systems. All rights reserved.