use of org.jboss.as.clustering.jgroups.ProtocolDefaults in project wildfly by wildfly.
the class ProtocolDefaultsServiceConfigurator method build.
@Override
public ServiceBuilder<?> build(ServiceTarget target) {
ServiceBuilder<?> builder = new AsyncServiceConfigurator(SERVICE_NAME).build(target);
Consumer<ProtocolDefaults> defaults = builder.provides(SERVICE_NAME);
Service service = new FunctionalService<>(defaults, Function.identity(), this);
return builder.setInstance(service).setInitialMode(ServiceController.Mode.ON_DEMAND);
}
Aggregations