Search in sources :

Example 1 with MetroSupport

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);
}
Also used : MetroSupport(org.eclipse.metro.helidon.MetroSupport) Config(io.helidon.config.Config) MpConfig(io.helidon.config.mp.MpConfig)

Aggregations

Config (io.helidon.config.Config)1 MpConfig (io.helidon.config.mp.MpConfig)1 MetroSupport (org.eclipse.metro.helidon.MetroSupport)1