|
26 | 26 | import com.alibaba.dubbo.config.spring.context.annotation.DubboConfigConfiguration;
|
27 | 27 | import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;
|
28 | 28 | import com.alibaba.dubbo.config.spring.context.annotation.EnableDubboConfig;
|
| 29 | + |
29 | 30 | import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
30 | 31 | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
31 | 32 | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
38 | 39 |
|
39 | 40 | import java.util.Set;
|
40 | 41 |
|
41 |
| -import static com.alibaba.boot.dubbo.util.DubboUtils.*; |
| 42 | +import static com.alibaba.boot.dubbo.util.DubboUtils.BASE_PACKAGES_PROPERTY_NAME; |
| 43 | +import static com.alibaba.boot.dubbo.util.DubboUtils.DUBBO_PREFIX; |
| 44 | +import static com.alibaba.boot.dubbo.util.DubboUtils.MULTIPLE_CONFIG_PROPERTY_NAME; |
42 | 45 | import static java.util.Collections.emptySet;
|
43 | 46 | import static org.springframework.beans.factory.config.ConfigurableBeanFactory.SCOPE_PROTOTYPE;
|
44 | 47 |
|
45 | 48 | /**
|
46 | 49 | * Dubbo Auto {@link Configuration}
|
47 | 50 | *
|
48 |
| - * @author <a href="mailto:[email protected]">Mercy</a> |
49 | 51 | * @see ApplicationConfig
|
50 | 52 | * @see Service
|
51 | 53 | * @see Reference
|
|
59 | 61 | @ConditionalOnClass(AbstractConfig.class)
|
60 | 62 | public class DubboAutoConfiguration {
|
61 | 63 |
|
62 |
| - /** |
63 |
| - * Single Dubbo Config Configuration |
64 |
| - * |
65 |
| - * @see EnableDubboConfig |
66 |
| - * @see DubboConfigConfiguration.Single |
67 |
| - */ |
68 |
| - @EnableDubboConfig |
69 |
| - protected static class SingleDubboConfigConfiguration { |
70 |
| - } |
71 |
| - |
72 |
| - /** |
73 |
| - * Multiple Dubbo Config Configuration , equals @EnableDubboConfig.multiple() == <code>true</code> |
74 |
| - * |
75 |
| - * @see EnableDubboConfig |
76 |
| - * @see DubboConfigConfiguration.Multiple |
77 |
| - */ |
78 |
| - @ConditionalOnProperty(name = MULTIPLE_CONFIG_PROPERTY_NAME, havingValue = "true") |
79 |
| - @EnableDubboConfig(multiple = true) |
80 |
| - protected static class MultipleDubboConfigConfiguration { |
81 |
| - } |
82 |
| - |
83 | 64 | /**
|
84 | 65 | * Creates {@link ServiceAnnotationBeanPostProcessor} Bean
|
85 | 66 | *
|
@@ -112,4 +93,25 @@ public ReferenceAnnotationBeanPostProcessor referenceAnnotationBeanPostProcessor
|
112 | 93 | return new ReferenceAnnotationBeanPostProcessor();
|
113 | 94 | }
|
114 | 95 |
|
| 96 | + /** |
| 97 | + * Single Dubbo Config Configuration |
| 98 | + * |
| 99 | + * @see EnableDubboConfig |
| 100 | + * @see DubboConfigConfiguration.Single |
| 101 | + */ |
| 102 | + @EnableDubboConfig |
| 103 | + protected static class SingleDubboConfigConfiguration { |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * Multiple Dubbo Config Configuration , equals @EnableDubboConfig.multiple() == <code>true</code> |
| 108 | + * |
| 109 | + * @see EnableDubboConfig |
| 110 | + * @see DubboConfigConfiguration.Multiple |
| 111 | + */ |
| 112 | + @ConditionalOnProperty(name = MULTIPLE_CONFIG_PROPERTY_NAME, havingValue = "true") |
| 113 | + @EnableDubboConfig(multiple = true) |
| 114 | + protected static class MultipleDubboConfigConfiguration { |
| 115 | + } |
| 116 | + |
115 | 117 | }
|
0 commit comments