##### Coverage Report - com.ctrip.framework.apollo.build.ComponentConfigurator

Classes in this File | Line Coverage | Branch Coverage | Complexity
ComponentConfigurator |
0% | 0/12
N/A | N/A
| 1.0;1

1 |  |
     package com.ctrip.framework.apollo.build;
2 |  |
3 |  |
     import com.ctrip.framework.apollo.internals.ConfigServiceLocator;
4 |  |
     import com.ctrip.framework.apollo.internals.DefaultConfigManager;
5 |  |
     import com.ctrip.framework.apollo.spi.DefaultConfigFactory;
6 |  |
     import com.ctrip.framework.apollo.spi.DefaultConfigFactoryManager;
7 |  |
     import com.ctrip.framework.apollo.spi.DefaultConfigRegistry;
8 |  |
     import com.ctrip.framework.apollo.util.ConfigUtil;
9 |  |
     import com.ctrip.framework.apollo.util.http.HttpUtil;
10 |  |
11 |  |
     import org.unidal.lookup.configuration.AbstractResourceConfigurator;
12 |  |
     import org.unidal.lookup.configuration.Component;
13 |  |
14 |  |
     import java.util.ArrayList;
15 |  |
     import java.util.List;
16 |  |
17 |  |
     /**
18 |  |
      * @author Jason Song(song_s@ctrip.com)
19 |  |
      */
20 | 0 |
     public class ComponentConfigurator extends AbstractResourceConfigurator {
21 |  |
       public static void main(String[] args) {
22 | 0 |
         generatePlexusComponentsXmlFile(new ComponentConfigurator());
23 | 0 |
       }
24 |  |
25 |  |
       @Override
26 |  |
       public List<Component> defineComponents() {
27 | 0 |
         List<Component> all = new ArrayList<>();
28 |  |
29 | 0 |
         all.add(A(DefaultConfigManager.class));
30 | 0 |
         all.add(A(DefaultConfigFactory.class));
31 | 0 |
         all.add(A(DefaultConfigRegistry.class));
32 | 0 |
         all.add(A(DefaultConfigFactoryManager.class));
33 | 0 |
         all.add(A(ConfigUtil.class));
34 | 0 |
         all.add(A(HttpUtil.class));
35 | 0 |
         all.add(A(ConfigServiceLocator.class));
36 |  |
37 | 0 |
         return all;
38 |  |
       }
39 |  |
     }