blob: 2c695255e0ebce99c4d8171ffe53a8acb0f14132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package org.onap.so.client.kafka;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import java.io.IOException;
import java.util.Properties;
public class KafkaClient {
protected static Logger logger = LoggerFactory.getLogger(KafkaClient.class);
protected final Properties properties;
public KafkaClient(String filepath) throws IOException {
Resource resource = new ClassPathResource(filepath);
this.properties = new Properties();
properties.load(resource.getInputStream());
}
}
|