public class DefaultConfigRegistry extends Object implements ConfigRegistry
| Constructor and Description |
|---|
DefaultConfigRegistry() |
| Modifier and Type | Method and Description |
|---|---|
ConfigFactory |
getFactory(String namespace)
Get the registered config factory for the namespace.
|
void |
register(String namespace,
ConfigFactory factory)
Register the config factory for the namespace specified.
|
public void register(String namespace, ConfigFactory factory)
ConfigRegistryregister in interface ConfigRegistrynamespace - the namespacefactory - the factory for this namespacepublic ConfigFactory getFactory(String namespace)
ConfigRegistrygetFactory in interface ConfigRegistrynamespace - the namespaceCopyright © 2022 Ctrip, Inc.. All rights reserved.