Search in sources :

Example 1 with MarshallingConfigurationRepository

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);
}
Also used : MarshallingConfigurationRepository(org.wildfly.clustering.marshalling.jboss.MarshallingConfigurationRepository) SimpleMarshallingConfigurationRepository(org.wildfly.clustering.marshalling.jboss.SimpleMarshallingConfigurationRepository) FunctionalService(org.wildfly.clustering.service.FunctionalService) ServiceName(org.jboss.msc.service.ServiceName) FunctionalService(org.wildfly.clustering.service.FunctionalService) Service(org.jboss.msc.Service)

Aggregations

Service (org.jboss.msc.Service)1 ServiceName (org.jboss.msc.service.ServiceName)1 MarshallingConfigurationRepository (org.wildfly.clustering.marshalling.jboss.MarshallingConfigurationRepository)1 SimpleMarshallingConfigurationRepository (org.wildfly.clustering.marshalling.jboss.SimpleMarshallingConfigurationRepository)1 FunctionalService (org.wildfly.clustering.service.FunctionalService)1