use of org.jboss.as.ejb3.cache.CacheFactory in project wildfly by wildfly.
the class DistributableCacheFactoryServiceConfigurator method build.
@Override
public ServiceBuilder<?> build(ServiceTarget target) {
this.configurator.build(target).install();
ServiceName name = this.getServiceName();
ServiceBuilder<?> builder = target.addService(name);
Consumer<CacheFactory<K, V>> factory = new CompositeDependency(this.factory, this.tsr).register(builder).provides(name);
Service service = Service.newInstance(factory, this);
return builder.setInstance(service);
}
use of org.jboss.as.ejb3.cache.CacheFactory in project wildfly by wildfly.
the class SimpleCacheFactoryServiceConfigurator method build.
@Override
public ServiceBuilder<?> build(ServiceTarget target) {
ServiceName name = this.getServiceName();
ServiceBuilder<?> builder = target.addService(name);
Consumer<CacheFactory<K, V>> factory = this.environment.register(builder).provides(name);
Service service = Service.newInstance(factory, this);
return builder.setInstance(service);
}
Aggregations