Provide ability to reset Cluster-Aware Configuration Condition state.

This commit is contained in:
John Blum
2019-08-30 17:41:21 -07:00
parent c1d7424de1
commit a8e29f7065
3 changed files with 19 additions and 3 deletions

View File

@@ -96,6 +96,10 @@ public class ClusterAwareConfiguration extends AbstractAnnotationConfigSupport {
private static final AtomicReference<Boolean> clusterAvailable = new AtomicReference<>(null);
static void reset() {
clusterAvailable.set(null);
}
@Override
public synchronized boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {