Search in sources :

Example 1 with RegistryFactory

use of org.wildfly.clustering.registry.RegistryFactory in project wildfly by wildfly.

the class FunctionalRegistryFactoryServiceConfigurator method build.

@Override
public final ServiceBuilder<?> build(ServiceTarget target) {
    ServiceBuilder<?> builder = target.addService(this.getServiceName());
    Consumer<RegistryFactory<K, V>> factory = this.register(builder).provides(this.getServiceName());
    Service service = Service.newInstance(factory, new FunctionalRegistryFactory<>(this));
    return builder.setInstance(service).setInitialMode(ServiceController.Mode.ON_DEMAND);
}
Also used : RegistryFactory(org.wildfly.clustering.registry.RegistryFactory) Service(org.jboss.msc.Service)

Aggregations

Service (org.jboss.msc.Service)1 RegistryFactory (org.wildfly.clustering.registry.RegistryFactory)1