use of org.jboss.modcluster.ModClusterService in project wildfly by wildfly.
the class ContainerEventHandlerService method start.
@Override
public void start(StartContext context) {
ROOT_LOGGER.debugf("Starting mod_cluster extension");
this.eventHandler = new ModClusterService(configurationValue.getValue(), load);
}
use of org.jboss.modcluster.ModClusterService in project wildfly by wildfly.
the class ContainerEventHandlerServiceConfigurator method build.
@Override
public ServiceBuilder<?> build(ServiceTarget target) {
ServiceBuilder<?> builder = new AsyncServiceConfigurator(this.getServiceName()).build(target);
Consumer<ModClusterService> modClusterService = this.configuration.register(builder).provides(this.getServiceName());
Service service = new FunctionalService<>(modClusterService, Function.identity(), this, this);
return builder.setInstance(service);
}
Aggregations