use of org.wildfly.clustering.marshalling.jboss.MarshallingConfigurationRepository in project wildfly by wildfly.
the class MarshallingConfigurationRepositoryServiceConfigurator method build.
@Override
public ServiceBuilder<?> build(ServiceTarget target) {
ServiceName name = this.getServiceName();
ServiceBuilder<?> builder = target.addService(name);
Consumer<MarshallingConfigurationRepository> repository = this.deployment.register(builder).provides(name);
Service service = new FunctionalService<>(repository, Function.identity(), this);
return builder.setInstance(service);
}
Aggregations