com.dahua.eco.base.spring.context.loader.AppContextHelperCondition Maven / Gradle / Ivy
package com.dahua.eco.base.spring.context.loader;
import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;
public class AppContextHelperCondition implements Condition {
@Override
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
if (context.getRegistry().containsBeanDefinition("appContextHelper")) {
return false;
}
return true;
}
}