Search in sources :

Example 1 with Runtime

use of org.jboss.gravia.runtime.Runtime in project wildfly-camel by wildfly-extras.

the class CamelContextFactoryService method start.

@Override
public void start(StartContext startContext) throws StartException {
    contextFactory = new CamelContextFactoryImpl();
    // Register the service with gravia
    Runtime runtime = injectedRuntime.getValue();
    ModuleContext syscontext = runtime.getModuleContext();
    registration = syscontext.registerService(CamelContextFactory.class, contextFactory, null);
}
Also used : Runtime(org.jboss.gravia.runtime.Runtime) ModuleContext(org.jboss.gravia.runtime.ModuleContext) CamelContextFactory(org.wildfly.extension.camel.CamelContextFactory)

Aggregations

ModuleContext (org.jboss.gravia.runtime.ModuleContext)1 Runtime (org.jboss.gravia.runtime.Runtime)1 CamelContextFactory (org.wildfly.extension.camel.CamelContextFactory)1