22 lines
394 B
Java
22 lines
394 B
Java
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();
|
|
}
|
|
|
|
}
|