Interface ScoreResolver<T extends Operation>
-
- Type Parameters:
T
- theOperation
type
- All Known Implementing Classes:
DefaultScoreResolver
,IfScoreResolver
,NamedOperationScoreResolver
,WhileScoreResolver
public interface ScoreResolver<T extends Operation>
AScoreResolver
is used to retrieve the score associated with a providedOperation
. The implementations ofScoreResolver
are used in theScoreOperationChainHandler
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Integer
getScore(T operation)
Should return a (nullable) score for a given operation.default Integer
getScore(T operation, ScoreResolver defaultScoreResolver)
Should return a (nullable) score for a given operation.
-
-
-
Method Detail
-
getScore
Integer getScore(T operation)
Should return a (nullable) score for a given operation.- Parameters:
operation
- the provided operation for which the score should be resolved- Returns:
- the score for the operation, otherwise null if not found
-
getScore
default Integer getScore(T operation, ScoreResolver defaultScoreResolver)
Should return a (nullable) score for a given operation.- Parameters:
operation
- the provided operation for which the score should be resolveddefaultScoreResolver
- the default score resolver to look up scores for nested operations- Returns:
- the score for the operation, otherwise null if not found
-
-