use of org.wildfly.clustering.service.FunctionalService in project wildfly by wildfly.
the class ProxyConfigurationServiceConfigurator method build.
@Override
public ServiceBuilder<?> build(ServiceTarget target) {
ServiceBuilder<?> builder = target.addService(this.getServiceName());
Consumer<ModClusterConfiguration> config = new CompositeDependency(this.advertiseSocketDependency, this.sslContextDependency).register(builder).provides(this.getServiceName());
for (Dependency dependency : this.outboundSocketBindings) {
dependency.register(builder);
}
Service service = new FunctionalService<>(config, Function.identity(), this, this);
return builder.setInstance(service).setInitialMode(ServiceController.Mode.PASSIVE);
}
Aggregations