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

org.redkalex.properties.nacos.NacosPropertiesAgentProvider Maven / Gradle / Ivy

There is a newer version: 2.7.7
Show newest version
/*
 */
package org.redkalex.properties.nacos;

import org.redkale.annotation.Priority;
import org.redkale.props.spi.PropertiesAgent;
import org.redkale.props.spi.PropertiesAgentProvider;
import org.redkale.util.AnyValue;

/** @author zhangjx */
@Priority(-900)
public class NacosPropertiesAgentProvider implements PropertiesAgentProvider {

    @Override
    public boolean acceptsConf(AnyValue config) {
        try {
            return new NacosPropertiesAgent().acceptsConf(config);
        } catch (Throwable t) {
            return false;
        }
    }

    @Override
    public PropertiesAgent createInstance() {
        return new NacosPropertiesAgent();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy