Other files ignored by Codecov
Showing 1 of 2 files from the diff.
@@ -27,8 +27,9 @@
Loading
27 | 27 | import org.apache.dubbo.registry.NotifyListener; |
|
28 | 28 | import org.apache.dubbo.registry.Registry; |
|
29 | 29 | import org.springframework.beans.factory.DisposableBean; |
|
30 | - | import org.springframework.beans.factory.InitializingBean; |
|
31 | 30 | import org.springframework.beans.factory.annotation.Autowired; |
|
31 | + | import org.springframework.boot.context.event.ApplicationReadyEvent; |
|
32 | + | import org.springframework.context.event.EventListener; |
|
32 | 33 | import org.springframework.stereotype.Component; |
|
33 | 34 | ||
34 | 35 | import java.util.HashMap; |
@@ -41,7 +42,7 @@
Loading
41 | 42 | import java.util.concurrent.atomic.AtomicLong; |
|
42 | 43 | ||
43 | 44 | @Component |
|
44 | - | public class RegistryServerSync implements InitializingBean, DisposableBean, NotifyListener { |
|
45 | + | public class RegistryServerSync implements DisposableBean, NotifyListener { |
|
45 | 46 | ||
46 | 47 | private static final Logger logger = LoggerFactory.getLogger(RegistryServerSync.class); |
|
47 | 48 |
@@ -76,8 +77,8 @@
Loading
76 | 77 | return registryCache; |
|
77 | 78 | } |
|
78 | 79 | ||
79 | - | @Override |
|
80 | - | public void afterPropertiesSet() throws Exception { |
|
80 | + | @EventListener(classes = ApplicationReadyEvent.class) |
|
81 | + | public void startSubscribe() { |
|
81 | 82 | logger.info("Init Dubbo Admin Sync Cache..."); |
|
82 | 83 | registry.subscribe(SUBSCRIBE, this); |
|
83 | 84 | } |
Files | Complexity | Coverage |
---|---|---|
dubbo-admin-server/src/main/java/org/apache/dubbo/admin | 19.67% | 21.03% |
Project Totals (97 files) | 19.67% | 21.03% |
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.