All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy