default String getJaxWsRsApplication() { List<String> jaxRsApplications = ReactiveSeq.fromStream(PluginLoader.INSTANCE.plugins.get() .stream()) .filter(module -> module.jaxWsRsApplication() != null) .map(Plugin::jaxWsRsApplication) .flatMap(Streams::optionalToStream) .toList(); if (jaxRsApplications.size() > 1) { throw new IncorrectJaxRsPluginsException( "ERROR! Multiple jax-rs application plugins found, a possible solution is to remove micro-jackson or other jax-rs application provider from your classpath. " + jaxRsApplications); } else if (jaxRsApplications.size() == 0) { throw new IncorrectJaxRsPluginsException( "ERROR! No jax-rs application plugins found, a possible solution is to add micro-jackson to your classpath. "); } return jaxRsApplications.get(0); }
.toList(); if (restConfigList.size() > 1) { throw new IncorrectJaxRsPluginsException( "ERROR! Multiple jax-rs application plugins found " + restConfigList); } else if (restConfigList.size() == 0) { throw new IncorrectJaxRsPluginsException( "ERROR! No jax-rs application plugins found ");
default String getJaxWsRsApplication() { List<String> jaxRsApplications = ReactiveSeq.fromStream(PluginLoader.INSTANCE.plugins.get() .stream()) .filter(module -> module.jaxWsRsApplication() != null) .map(Plugin::jaxWsRsApplication) .flatMap(Streams::optionalToStream) .toList(); if (jaxRsApplications.size() > 1) { throw new IncorrectJaxRsPluginsException( "ERROR! Multiple jax-rs application plugins found, a possible solution is to remove micro-jackson or other jax-rs application provider from your classpath. " + jaxRsApplications); } else if (jaxRsApplications.size() == 0) { throw new IncorrectJaxRsPluginsException( "ERROR! No jax-rs application plugins found, a possible solution is to add micro-jackson to your classpath. "); } return jaxRsApplications.get(0); }
.toList(); if (restConfigList.size() > 1) { throw new IncorrectJaxRsPluginsException( "ERROR! Multiple jax-rs application plugins found " + restConfigList); } else if (restConfigList.size() == 0) { throw new IncorrectJaxRsPluginsException( "ERROR! No jax-rs application plugins found ");