use of org.eclipse.metro.helidon.MetroSupport in project metro-jax-ws by eclipse-ee4j.
the class MetroCdiExtension method start.
public void start(@Observes @Priority(Interceptor.Priority.PLATFORM_AFTER) @Initialized(ApplicationScoped.class) Object event, BeanManager bm) {
org.eclipse.microprofile.config.Config config = ConfigProvider.getConfig();
Config helidonConfig = MpConfig.toHelidonConfig(config).get("metro");
MetroSupport metro = MetroSupport.create(helidonConfig);
RoutingBuilders.create(helidonConfig).routingBuilder().register("/metro", metro);
}
Aggregations