use of com.hazelcast.config.UrlXmlConfig in project qi4j-sdk by Qi4j.
the class HazelcastEntityStoreMixin method createConfig.
private Config createConfig(HazelcastConfiguration configuration) throws IOException {
String hzConfLocation = configuration.configXmlLocation().get();
if (hzConfLocation == null || hzConfLocation.isEmpty()) {
hzConfLocation = "hazelcast-default.xml";
}
Config conf;
if (hzConfLocation.contains(":")) {
conf = new UrlXmlConfig(hzConfLocation);
} else {
conf = new ClasspathXmlConfig(hzConfLocation);
}
return conf;
}
Aggregations