##### Coverage Report - com.ctrip.apollo.spi.ConfigRegistry

Classes in this File | Line Coverage | Branch Coverage | Complexity
ConfigRegistry |
N/A | N/A
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.apollo.spi;
2 |  |
3 |  |
     /**
4 |  |
      * The manually config registry, use with caution!
5 |  |
      *
6 |  |
      * @author Jason Song(song_s@ctrip.com)
7 |  |
      */
8 |  |
     public interface ConfigRegistry {
9 |  |
       /**
10 |  |
        * Register the config factory for the namespace specified.
11 |  |
        *
12 |  |
        * @param namespace the namespace
13 |  |
        * @param factory   the factory for this namespace
14 |  |
        */
15 |  |
       public void register(String namespace, ConfigFactory factory);
16 |  |
17 |  |
       /**
18 |  |
        * Get the registered config factory for the namespace.
19 |  |
        *
20 |  |
        * @param namespace the namespace
21 |  |
        * @return the factory registered for this namespace
22 |  |
        */
23 |  |
       public ConfigFactory getFactory(String namespace);
24 |  |
     }