use of org.jboss.gravia.runtime.ModuleContext in project wildfly-camel by wildfly-extras.
the class ContextCreateHandlerRegistryService method start.
@Override
public void start(StartContext startContext) throws StartException {
ServiceContainer serviceContainer = startContext.getController().getServiceContainer();
createHandlerRegistry = new ContextCreateHandlerRegistryImpl(serviceContainer, startContext.getChildTarget());
Runtime runtime = injectedRuntime.getValue();
ModuleContext syscontext = runtime.getModuleContext();
registration = syscontext.registerService(ContextCreateHandlerRegistry.class, createHandlerRegistry, null);
}
use of org.jboss.gravia.runtime.ModuleContext 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);
}
use of org.jboss.gravia.runtime.ModuleContext in project wildfly-camel by wildfly-extras.
the class CamelUndertowHostService method start.
@Override
public void start(StartContext startContext) throws StartException {
runtimeState.setHttpHost(getConnectionURL());
eventListener = new CamelUndertowEventListener();
injectedUndertowService.getValue().registerListener(eventListener);
undertowHost = new WildFlyUndertowHost(injectedDefaultHost.getValue());
ModuleContext syscontext = injectedRuntime.getValue().getModuleContext();
registration = syscontext.registerService(UndertowHost.class, undertowHost, null);
}
use of org.jboss.gravia.runtime.ModuleContext in project wildfly-camel by wildfly-extras.
the class CamelContextRegistryService method start.
@Override
public void start(StartContext startContext) throws StartException {
ContextCreateHandlerRegistry handlerRegistry = injectedHandlerRegistry.getValue();
ServiceRegistry serviceRegistry = startContext.getController().getServiceContainer();
contextRegistry = new CamelContextRegistryImpl(handlerRegistry, serviceRegistry, startContext.getChildTarget());
// Register the service with gravia
Runtime runtime = injectedRuntime.getValue();
ModuleContext syscontext = runtime.getModuleContext();
registration = syscontext.registerService(CamelContextRegistry.class, contextRegistry, null);
for (final String name : subsystemState.getContextDefinitionNames()) {
createCamelContext(name, subsystemState.getContextDefinition(name));
}
}
use of org.jboss.gravia.runtime.ModuleContext in project wildfly-camel by wildfly-extras.
the class UndertowHostService method start.
@Override
public void start(StartContext startContext) throws StartException {
ModuleContext syscontext = injectedRuntime.getValue().getModuleContext();
registration = syscontext.registerService(Host.class, injectedDefaultHost.getValue(), null);
}
Aggregations