use of org.ff4j.consul.store.PropertyStoreConsul in project ff4j by ff4j.
the class PropertyStoreConsulEmbeddedTest method initPropertyStore.
/**
* {@inheritDoc}
*/
protected PropertyStore initPropertyStore() {
Consul c = Consul.builder().withUrl("http://localhost:8800").build();
ConsulConnection connection = new ConsulConnection(c);
PropertyStoreConsul consulStore = new PropertyStoreConsul(connection);
consulStore.importPropertiesFromXmlFile("ff4j.xml");
return consulStore;
}
use of org.ff4j.consul.store.PropertyStoreConsul in project ff4j by ff4j.
the class PropertyStoreConsulTestIT method initPropertyStore.
/**
* {@inheritDoc}
*/
protected PropertyStore initPropertyStore() {
ConsulConnection connection = new ConsulConnection();
PropertyStoreConsul consulStore = new PropertyStoreConsul(connection);
consulStore.importPropertiesFromXmlFile("ff4j.xml");
return consulStore;
}
Aggregations