@Test void testRoutingNotRequired() { JaxRsApplication app = JaxRsApplication.builder() .application(TestApp.class) .routingNameRequired(false) .build(); boolean required = extension.isNamedRoutingRequired(EMPTY_CONFIG, app); assertThat("Routing name required is overridden by builder", required, is(false)); }
boolean isNamedRoutingRequired(io.helidon.config.Config config, JaxRsApplication jaxRsApplication) { return config.get(jaxRsApplication.appClassName() + "." + RoutingName.CONFIG_KEY_REQUIRED) .asBoolean() .orElseGet(jaxRsApplication::routingNameRequired); }
JaxRsCdiExtension implements Extension { boolean isNamedRoutingRequired(io.helidon.config.Config config, JaxRsApplication jaxRsApplication) { return config.get(jaxRsApplication.appClassName() + "." + RoutingName.CONFIG_KEY_REQUIRED) .asBoolean() .orElseGet(jaxRsApplication::routingNameRequired); } }
JaxRsCdiExtension implements Extension { boolean isNamedRoutingRequired(io.helidon.config.Config config, JaxRsApplication jaxRsApplication) { return config.get(jaxRsApplication.appClassName() + "." + RoutingName.CONFIG_KEY_REQUIRED) .asBoolean() .orElseGet(jaxRsApplication::routingNameRequired); }  }
JaxRsCdiExtension implements Extension { boolean isNamedRoutingRequired(io.helidon.config.Config config, JaxRsApplication jaxRsApplication) { return config.get(jaxRsApplication.appClassName() + "." + RoutingName.CONFIG_KEY_REQUIRED) .asBoolean() .orElseGet(jaxRsApplication::routingNameRequired); }  List<JaxRsApplication> applicationsToRun(); void removeApplications(); void removeResourceClasses(); void addResourceClasses(List<Class<?>> resourceClasses); void addApplications(List<JaxRsApplication> applications); void addApplication(Application application); void addApplication(String contextRoot, Application application); String serviceName(); void addSyntheticApplication(List<Class<?>> resourceClasses); }
JaxRsCdiExtension implements Extension { boolean isNamedRoutingRequired(io.helidon.config.Config config, JaxRsApplication jaxRsApplication) { return config.get(jaxRsApplication.appClassName() + "." + RoutingName.CONFIG_KEY_REQUIRED) .asBoolean() .orElseGet(jaxRsApplication::routingNameRequired); }  List<JaxRsApplication> applicationsToRun(); void removeApplications(); void removeResourceClasses(); void addResourceClasses(List<Class<?>> resourceClasses); void addApplications(List<JaxRsApplication> applications); void addApplication(Application application); void addApplication(String contextRoot, Application application); String serviceName(); void addSyntheticApplication(List<Class<?>> resourceClasses);  }