formatted
This commit is contained in:
parent
9e3549e410
commit
a991055fd6
|
@ -33,29 +33,28 @@ import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
@ApplicationPath(InterfaceConstants.APPLICATION_PATH)
|
@ApplicationPath(InterfaceConstants.APPLICATION_PATH)
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class GeoPortalService extends ResourceConfig{
|
public class GeoPortalService extends ResourceConfig {
|
||||||
|
|
||||||
public <T> Map<Engine<T>,Class<T>> customImplementations(){
|
public <T> Map<Engine<T>, Class<T>> customImplementations() {
|
||||||
return Collections.EMPTY_MAP;
|
return Collections.EMPTY_MAP;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GeoPortalService() {
|
public GeoPortalService() {
|
||||||
super();
|
super();
|
||||||
//Register interrfaces
|
// Register interfaces
|
||||||
|
|
||||||
log.info("Initializing serialization");
|
log.info("Initializing serialization");
|
||||||
JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();
|
JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();
|
||||||
provider.setMapper(Serialization.mapper);
|
provider.setMapper(Serialization.mapper);
|
||||||
register(provider);
|
register(provider);
|
||||||
|
|
||||||
|
|
||||||
registerClasses(RequestFilter.class);
|
registerClasses(RequestFilter.class);
|
||||||
|
|
||||||
registerClasses(ProfiledDocuments.class);
|
registerClasses(ProfiledDocuments.class);
|
||||||
registerClasses(UseCaseDescriptors.class);
|
registerClasses(UseCaseDescriptors.class);
|
||||||
registerClasses(Plugins.class);
|
registerClasses(Plugins.class);
|
||||||
registerClasses(GeoportalHealth.class);
|
registerClasses(GeoportalHealth.class);
|
||||||
//registerClasses(DocsGenerator.class);
|
// registerClasses(DocsGenerator.class);
|
||||||
|
|
||||||
log.info("Setting implementations .. ");
|
log.info("Setting implementations .. ");
|
||||||
|
|
||||||
|
@ -64,25 +63,19 @@ public class GeoPortalService extends ResourceConfig{
|
||||||
ImplementationProvider.get().setEngine(new StorageClientProvider(), StorageUtils.class);
|
ImplementationProvider.get().setEngine(new StorageClientProvider(), StorageUtils.class);
|
||||||
ImplementationProvider.get().setEngine(new SingleISResourceUCDProvider(), ProfileMap.class);
|
ImplementationProvider.get().setEngine(new SingleISResourceUCDProvider(), ProfileMap.class);
|
||||||
ImplementationProvider.get().setEngine(new PluginManager(), PluginManager.PluginMap.class);
|
ImplementationProvider.get().setEngine(new PluginManager(), PluginManager.PluginMap.class);
|
||||||
ImplementationProvider.get().setEngine(new UCDManager(),UCDManagerI.class);
|
ImplementationProvider.get().setEngine(new UCDManager(), UCDManagerI.class);
|
||||||
ImplementationProvider.get().setEngine(new ConfigurationCache(), ConfigurationCache.ConfigurationMap.class);
|
ImplementationProvider.get().setEngine(new ConfigurationCache(), ConfigurationCache.ConfigurationMap.class);
|
||||||
|
|
||||||
|
for (Map.Entry<Engine<Object>, Class<Object>> entry : customImplementations().entrySet()) {
|
||||||
for(Map.Entry<Engine<Object>, Class<Object>> entry : customImplementations().entrySet()){
|
log.warn("LOADING CUSTOM ENGINE : {} serving {}", entry.getKey(), entry.getValue());
|
||||||
log.warn("LOADING CUSTOM ENGINE : {} serving {}",entry.getKey(),entry.getValue());
|
|
||||||
ImplementationProvider.get().setEngine(entry.getKey(), entry.getValue());
|
ImplementationProvider.get().setEngine(entry.getKey(), entry.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
log.debug("ENGINES ARE : ");
|
log.debug("ENGINES ARE : ");
|
||||||
ImplementationProvider.get().getManagerList().forEach(
|
ImplementationProvider.get().getManagerList().forEach((aClass, s) -> log.debug("{} serving {} ", aClass, s));
|
||||||
(aClass, s) -> log.debug("{} serving {} ",aClass,s));
|
|
||||||
|
|
||||||
ImplementationProvider.get().initEngines();
|
ImplementationProvider.get().initEngines();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue