Interface MethodSelector
-
- All Known Implementing Classes:
CreateOrUpdateSelector,FactoryParameterSelector,InheritanceSelector,JakartaXmlElementDeclSelector,JavaxXmlElementDeclSelector,MethodFamilySelector,QualifierSelector,SourceRhsSelector,TargetTypeSelector,TypeSelector,XmlElementDeclSelector
interface MethodSelectorImplementations select those methods from a given input set which match the given source and target type of a mapping and optionally other given criteria. An error will be raised if either no or more than one matching method are left over after applying all selectors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Method>
java.util.List<SelectedMethod<T>>getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> candidates, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)Selects those methods which match the given types and other criteria
-
-
-
Method Detail
-
getMatchingMethods
<T extends Method> java.util.List<SelectedMethod<T>> getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> candidates, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)
Selects those methods which match the given types and other criteria- Type Parameters:
T- either SourceMethod or BuiltInMethod- Parameters:
mappingMethod- mapping method, defined in Mapper for which this selection is carried outcandidates- list of available methodssourceTypes- parameter type(s) that should be matchedmappingTargetType- mappingTargetType that should be matchedreturnType- return type that should be matchedcriteria- criteria used in the selection process- Returns:
- list of methods that passes the matching process
-
-