public interface ContextCalculator
Modifier and Type | Method and Description |
---|---|
void |
accumulateContexts(Subject subject,
Set<Context> accumulator)
Add any contexts this calculator determines to be applicable to the
provided accumulator.
|
boolean |
matches(Context context,
Subject subject)
Checks if a single context is currently applicable to a single subject.
|
void accumulateContexts(Subject subject, Set<Context> accumulator)
subject
- The subject being checkedaccumulator
- The accumulator to add toboolean matches(Context context, Subject subject)
context
- The context being checkedsubject
- The subject this context is being checked against