com.ctrip.framework.apollo.spi.ConfigRegistry Maven / Gradle / Ivy
The newest version!
package com.ctrip.framework.apollo.spi;
/**
* The manually config registry, use with caution!
*
* @author Jason Song([email protected])
*/
public interface ConfigRegistry {
/**
* Register the config factory for the namespace specified.
*
* @param namespace the namespace
* @param factory the factory for this namespace
*/
public void register(String namespace, ConfigFactory factory);
/**
* Get the registered config factory for the namespace.
*
* @param namespace the namespace
* @return the factory registered for this namespace
*/
public ConfigFactory getFactory(String namespace);
}