Package ninja.cache
Class CacheProvider
- java.lang.Object
-
- ninja.cache.CacheProvider
-
- All Implemented Interfaces:
com.google.inject.Provider<Cache>
,jakarta.inject.Provider<Cache>
,javax.inject.Provider<Cache>
public class CacheProvider extends Object implements com.google.inject.Provider<Cache>
A provider that determines which implementation to load as a Cache based on the value of a configuration key inNinjaProperties
(aka application.conf). The configured implementation is only resolved when its actually used vs. at application startup. If this variable is set the instance for that class is instantiated and used as cache implementation. If the variable is not setCacheEhCacheImpl
is used by default.
-
-
Constructor Summary
Constructors Constructor Description CacheProvider(com.google.inject.Injector injector, NinjaProperties ninjaProperties)
-
-
-
Constructor Detail
-
CacheProvider
@Inject public CacheProvider(com.google.inject.Injector injector, NinjaProperties ninjaProperties)
-
-