Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "ICS tests with istio and JWTs"
[nonrtric.git]
/
dmaap-adaptor-java
/
src
/
main
/
java
/
org
/
oran
/
dmaapadapter
/
BeanFactory.java
diff --git
a/dmaap-adaptor-java/src/main/java/org/oran/dmaapadapter/BeanFactory.java
b/dmaap-adaptor-java/src/main/java/org/oran/dmaapadapter/BeanFactory.java
index
c9ba93f
..
d98a8c3
100644
(file)
--- a/
dmaap-adaptor-java/src/main/java/org/oran/dmaapadapter/BeanFactory.java
+++ b/
dmaap-adaptor-java/src/main/java/org/oran/dmaapadapter/BeanFactory.java
@@
-26,8
+26,6
@@
import org.apache.catalina.connector.Connector;
import org.oran.dmaapadapter.configuration.ApplicationConfig;
import org.oran.dmaapadapter.repository.InfoType;
import org.oran.dmaapadapter.repository.InfoTypes;
import org.oran.dmaapadapter.configuration.ApplicationConfig;
import org.oran.dmaapadapter.repository.InfoType;
import org.oran.dmaapadapter.repository.InfoTypes;
-import org.oran.dmaapadapter.repository.Jobs;
-import org.oran.dmaapadapter.tasks.DmaapMessageConsumer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
@@
-47,15
+45,8
@@
public class BeanFactory {
}
@Bean
}
@Bean
- public InfoTypes types(@Autowired ApplicationConfig appConfig
, @Autowired Jobs jobs
) {
+ public InfoTypes types(@Autowired ApplicationConfig appConfig) {
Collection<InfoType> types = appConfig.getTypes();
Collection<InfoType> types = appConfig.getTypes();
-
- // Start a consumer for each type
- for (InfoType type : types) {
- DmaapMessageConsumer topicConsumer = new DmaapMessageConsumer(appConfig, type, jobs);
- topicConsumer.start();
- }
-
return new InfoTypes(types);
}
return new InfoTypes(types);
}