use of org.wildfly.clustering.web.routing.RouteLocatorServiceConfiguratorFactory in project wildfly by wildfly.
the class AffinityServiceConfigurator method build.
@Override
public ServiceBuilder<?> build(ServiceTarget target) {
ServiceName name = this.getServiceName();
ServiceBuilder<?> builder = target.addService(name);
Consumer<RouteLocatorServiceConfiguratorFactory<C>> factory = builder.provides(name);
Service service = Service.newInstance(factory, this.get());
return builder.setInstance(service).setInitialMode(ServiceController.Mode.ON_DEMAND);
}
Aggregations