Add method to unregister context calculators (#1422)

This commit is contained in:
Luck
2019-02-07 12:24:23 +00:00
Unverified
parent d91355e4d6
commit 85d2f0b51f
5 changed files with 17 additions and 22 deletions
@@ -150,13 +150,12 @@ public interface ContextManager {
void registerCalculator(@NonNull ContextCalculator<?> calculator);
/**
* Registers a static context calculator with the manager.
*
* <p>Static calculators provide the same context for all subjects.</p>
* Unregisters a context calculator with the manager.
*
* @param calculator the calculator
* @since 4.4
*/
void registerStaticCalculator(@NonNull StaticContextCalculator calculator);
void unregisterCalculator(@NonNull ContextCalculator<?> calculator);
/**
* Invalidates the lookup cache for a given subject