From a991055fd64a2b489f7302f362cb7f2eabc2f76b Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Fri, 18 Oct 2024 16:56:22 +0200 Subject: [PATCH] formatted --- .../geoportal/service/GeoPortalService.java | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/geoportal-service/src/main/java/org/gcube/application/geoportal/service/GeoPortalService.java b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/GeoPortalService.java index faa09e3..7d7e531 100644 --- a/geoportal-service/src/main/java/org/gcube/application/geoportal/service/GeoPortalService.java +++ b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/GeoPortalService.java @@ -33,29 +33,28 @@ import lombok.extern.slf4j.Slf4j; @ApplicationPath(InterfaceConstants.APPLICATION_PATH) @Slf4j -public class GeoPortalService extends ResourceConfig{ +public class GeoPortalService extends ResourceConfig { - public Map,Class> customImplementations(){ + public Map, Class> customImplementations() { return Collections.EMPTY_MAP; } - + public GeoPortalService() { super(); - //Register interrfaces + // Register interfaces log.info("Initializing serialization"); JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider(); provider.setMapper(Serialization.mapper); register(provider); - registerClasses(RequestFilter.class); registerClasses(ProfiledDocuments.class); registerClasses(UseCaseDescriptors.class); registerClasses(Plugins.class); registerClasses(GeoportalHealth.class); - //registerClasses(DocsGenerator.class); + // registerClasses(DocsGenerator.class); log.info("Setting implementations .. "); @@ -64,25 +63,19 @@ public class GeoPortalService extends ResourceConfig{ ImplementationProvider.get().setEngine(new StorageClientProvider(), StorageUtils.class); ImplementationProvider.get().setEngine(new SingleISResourceUCDProvider(), ProfileMap.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); - - for(Map.Entry, Class> entry : customImplementations().entrySet()){ - log.warn("LOADING CUSTOM ENGINE : {} serving {}",entry.getKey(),entry.getValue()); + for (Map.Entry, Class> entry : customImplementations().entrySet()) { + log.warn("LOADING CUSTOM ENGINE : {} serving {}", entry.getKey(), entry.getValue()); ImplementationProvider.get().setEngine(entry.getKey(), entry.getValue()); } log.debug("ENGINES ARE : "); - ImplementationProvider.get().getManagerList().forEach( - (aClass, s) -> log.debug("{} serving {} ",aClass,s)); + ImplementationProvider.get().getManagerList().forEach((aClass, s) -> log.debug("{} serving {} ", aClass, s)); ImplementationProvider.get().initEngines(); - } - - - }