25 lines
526 B
Java
25 lines
526 B
Java
package org.gcube.data.publishing.gCatFeeder.collectors.dm;
|
|
|
|
import java.io.IOException;
|
|
import java.util.Properties;
|
|
|
|
public class DataMinerCollectorProperties {
|
|
|
|
public static final String DEFAULT_AUTHOR="default_author";
|
|
|
|
|
|
private static Properties props;
|
|
|
|
public static void init() throws IOException {
|
|
props=new Properties();
|
|
props.load(DataMinerCollectorProperties.class.getResourceAsStream("config.properties"));
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String getProperty(String key) {
|
|
return props.getProperty(key);
|
|
}
|
|
}
|