Migrate the Ehcache 2 Java API to JCache
ProprietaryMoves Java code from Ehcache 2's net.sf.ehcache API to the JCache API (javax.cache), with Ehcache 3 as its provider. CacheManager.create() and the like become the cache manager of Ehcache 3's caching provider for the ehcache.xml they read, entries are put and read as keys and values instead of Elements, and Spring's EhCacheCacheManager and EhCacheCache become JCacheCacheManager and JCacheCache. Code this recipe has no JCache counterpart for keeps its Ehcache 2 references; io.moderne.java.ehcache.MigrateEhcache2To3 leaves such a repository alone.
io. moderne. java. ehcache. MigrateEhcacheJavaApimod run . --recipe= io. moderne. java. ehcache. MigrateEhcacheJavaApiInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.