All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.counter.impl.manager.CounterManagerFactory Maven / Gradle / Ivy

package org.infinispan.counter.impl.manager;

import org.infinispan.counter.api.CounterManager;
import org.infinispan.factories.ComponentFactory;
import org.infinispan.factories.annotations.DefaultFactoryFor;
import org.infinispan.factories.annotations.Inject;
import org.infinispan.factories.scopes.Scope;
import org.infinispan.factories.scopes.Scopes;
import org.infinispan.manager.EmbeddedCacheManager;

@DefaultFactoryFor(classes = CounterManager.class)
@Scope(Scopes.GLOBAL)
public class CounterManagerFactory implements ComponentFactory {
   @Inject EmbeddedCacheManager cacheManager;

   @Override
   public Object construct(String componentName) {
      return new EmbeddedCounterManager(cacheManager);
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy