Search in sources :

Example 1 with ModClusterService

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);
}
Also used : ModClusterService(org.jboss.modcluster.ModClusterService)

Example 2 with ModClusterService

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);
}
Also used : FunctionalService(org.wildfly.clustering.service.FunctionalService) ModClusterService(org.jboss.modcluster.ModClusterService) AsyncServiceConfigurator(org.wildfly.clustering.service.AsyncServiceConfigurator) ModClusterService(org.jboss.modcluster.ModClusterService) FunctionalService(org.wildfly.clustering.service.FunctionalService) Service(org.jboss.msc.Service)

Aggregations

ModClusterService (org.jboss.modcluster.ModClusterService)2 Service (org.jboss.msc.Service)1 AsyncServiceConfigurator (org.wildfly.clustering.service.AsyncServiceConfigurator)1 FunctionalService (org.wildfly.clustering.service.FunctionalService)1