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

com.github.zhengframework.cache.CacheResolverFactoryProvider Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
package com.github.zhengframework.cache;

import javax.cache.CacheManager;
import javax.cache.annotation.CacheResolverFactory;
import javax.inject.Inject;
import javax.inject.Provider;
import org.jsr107.ri.annotations.DefaultCacheResolverFactory;

public class CacheResolverFactoryProvider implements Provider {

  private final CacheManager cacheManager;

  @Inject
  public CacheResolverFactoryProvider(CacheManager cacheManager) {
    this.cacheManager = cacheManager;
  }

  @Override
  public CacheResolverFactory get() {
    return new DefaultCacheResolverFactory(cacheManager);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy