use of org.infinispan.configuration.cache.Configuration in project wildfly by wildfly.
the class DefaultCacheContainerTestCase method defineConfiguration.
@Test
public void defineConfiguration() {
ConfigurationBuilder builder = new ConfigurationBuilder();
Configuration config = builder.build();
when(this.manager.defineConfiguration("other", config)).thenReturn(config);
Configuration result = this.subject.defineConfiguration("other", config);
assertSame(config, result);
}
use of org.infinispan.configuration.cache.Configuration in project wildfly by wildfly.
the class ConfigurationServiceConfigurator method build.
@Override
public final ServiceBuilder<?> build(ServiceTarget target) {
ServiceBuilder<?> builder = target.addService(this.getServiceName());
Consumer<Configuration> configuration = new CompositeDependency(this.container, this.dependency).register(builder).provides(this.getServiceName());
Service service = new FunctionalService<>(configuration, Function.identity(), this, this);
return builder.setInstance(service).setInitialMode(ServiceController.Mode.ON_DEMAND);
}
Aggregations