Fixing old and new configuration management
This commit is contained in:
parent
e0a018e083
commit
ef2cb362f3
|
@ -102,9 +102,9 @@ public class GCoreISConfigurationProxy {
|
||||||
this.mapper = new ObjectMapper();
|
this.mapper = new ObjectMapper();
|
||||||
}
|
}
|
||||||
|
|
||||||
public ServiceCatalogueConfiguration getCatalogueConfiguration() {
|
public ServiceCatalogueConfiguration getCatalogueConfiguration() throws WebApplicationException {
|
||||||
if (catalogueConfiguration == null) {
|
if (catalogueConfiguration == null) {
|
||||||
catalogueConfiguration = getOLDCatalogueConfigurationFromIS();
|
catalogueConfiguration = getCatalogueConfigurationFromIS();
|
||||||
}
|
}
|
||||||
return catalogueConfiguration;
|
return catalogueConfiguration;
|
||||||
}
|
}
|
||||||
|
@ -183,12 +183,16 @@ public class GCoreISConfigurationProxy {
|
||||||
return serviceEndpoint;
|
return serviceEndpoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected ServiceCatalogueConfiguration getCatalogueConfigurationFromIS() throws IOException {
|
protected ServiceCatalogueConfiguration getCatalogueConfigurationFromIS() throws WebApplicationException {
|
||||||
ServiceEndpoint serviceEndpoint = getServiceEndpoint();
|
ServiceEndpoint serviceEndpoint = getServiceEndpoint();
|
||||||
if(serviceEndpoint==null) {
|
if(serviceEndpoint==null) {
|
||||||
return getOLDCatalogueConfigurationFromIS();
|
return getOLDCatalogueConfigurationFromIS();
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
return getConfiguration(serviceEndpoint);
|
return getConfiguration(serviceEndpoint);
|
||||||
|
}catch (Exception e) {
|
||||||
|
throw new InternalServerErrorException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
|
|
Loading…
Reference in New Issue