Search in sources :

Example 1 with BeanManagerFactory

use of org.wildfly.clustering.ejb.BeanManagerFactory in project wildfly by wildfly.

the class InfinispanBeanManagerFactoryServiceConfigurator method build.

@Override
public ServiceBuilder<?> build(ServiceTarget target) {
    ServiceBuilder<?> builder = target.addService(this.getServiceName());
    new CompositeDependency(this.cache, this.affinityFactory, this.repository, this.group, this.dispatcherFactory).register(builder);
    Consumer<BeanManagerFactory<I, T, TransactionBatch>> factory = builder.provides(this.getServiceName());
    Service service = Service.newInstance(factory, new InfinispanBeanManagerFactory<>(this));
    return builder.setInstance(service).setInitialMode(ServiceController.Mode.ON_DEMAND);
}
Also used : BeanManagerFactory(org.wildfly.clustering.ejb.BeanManagerFactory) Service(org.jboss.msc.Service) CompositeDependency(org.wildfly.clustering.service.CompositeDependency)

Aggregations

Service (org.jboss.msc.Service)1 BeanManagerFactory (org.wildfly.clustering.ejb.BeanManagerFactory)1 CompositeDependency (org.wildfly.clustering.service.CompositeDependency)1