move TcpIngestor to pdb-ui

and start it in the web application.
Also use the spring way of handling property files.
This commit is contained in:
2017-03-19 08:00:18 +01:00
parent 16f9c92d13
commit aadc9cbd21
10 changed files with 77 additions and 13 deletions

View File

@@ -0,0 +1,21 @@
package org.lucares.pdbui;
import javax.annotation.PostConstruct;
import org.springframework.stereotype.Component;
@Component
public class Ingestion {
private final Ingestor tcpIngestor;
public Ingestion(final Ingestor tcpIngestor) {
this.tcpIngestor = tcpIngestor;
}
@PostConstruct
public void start() throws Exception {
tcpIngestor.start();
}
}