Uses of Interface
javax.cache.configuration.Factory
-
Packages that use Factory Package Description javax.cache.configuration This package contains configuration classes and interfaces.javax.cache.expiry This package contains expiry policies -
-
Uses of Factory in javax.cache.configuration
Classes in javax.cache.configuration that implement Factory Modifier and Type Class Description static class
FactoryBuilder.ClassFactory<T>
AFactory
that instantiates a specific Class.static class
FactoryBuilder.SingletonFactory<T>
AFactory
that always returns a specific instance.Fields in javax.cache.configuration declared as Factory Modifier and Type Field Description protected Factory<CacheLoader<K,V>>
MutableConfiguration. cacheLoaderFactory
TheFactory
for theCacheLoader
.protected Factory<CacheWriter<? super K,? super V>>
MutableConfiguration. cacheWriterFactory
TheFactory
for theCacheWriter
.protected Factory<ExpiryPolicy>
MutableConfiguration. expiryPolicyFactory
TheFactory
for theExpiryPolicy
.private Factory<CacheEntryEventFilter<? super K,? super V>>
MutableCacheEntryListenerConfiguration. filterFactory
TheFactory
to be used to create theCacheEntryEventFilter
.private Factory<CacheEntryListener<? super K,? super V>>
MutableCacheEntryListenerConfiguration. listenerFactory
TheFactory
to be used to create theCacheEntryListener
.Methods in javax.cache.configuration that return Factory Modifier and Type Method Description static <T> Factory<T>
FactoryBuilder. factoryOf(java.lang.Class<T> clazz)
Constructs aFactory
that will produce factory instances of the specified class.static <T> Factory<T>
FactoryBuilder. factoryOf(java.lang.String className)
Constructs aFactory
that will produce factory instances of the specified class.static <T extends java.io.Serializable>
Factory<T>FactoryBuilder. factoryOf(T instance)
Constructs aFactory
that will return the specified factory Serializable instance.Factory<CacheEntryEventFilter<? super K,? super V>>
CacheEntryListenerConfiguration. getCacheEntryEventFilterFactory()
Obtains theFactory
for theCacheEntryEventFilter
that should be applied prior to notifying theCacheEntryListener
.Factory<CacheEntryEventFilter<? super K,? super V>>
MutableCacheEntryListenerConfiguration. getCacheEntryEventFilterFactory()
Obtains theFactory
for theCacheEntryEventFilter
that should be applied prior to notifying theCacheEntryListener
.Factory<CacheEntryListener<? super K,? super V>>
CacheEntryListenerConfiguration. getCacheEntryListenerFactory()
Obtains theFactory
for theCacheEntryListener
.Factory<CacheEntryListener<? super K,? super V>>
MutableCacheEntryListenerConfiguration. getCacheEntryListenerFactory()
Obtains theFactory
for theCacheEntryListener
.Factory<CacheLoader<K,V>>
CompleteConfiguration. getCacheLoaderFactory()
Gets theFactory
for theCacheLoader
, if any.Factory<CacheLoader<K,V>>
MutableConfiguration. getCacheLoaderFactory()
Gets theFactory
for theCacheLoader
, if any.Factory<CacheWriter<? super K,? super V>>
CompleteConfiguration. getCacheWriterFactory()
Gets theFactory
for theCacheWriter
, if any.Factory<CacheWriter<? super K,? super V>>
MutableConfiguration. getCacheWriterFactory()
Gets theFactory
for theCacheWriter
, if any.Factory<ExpiryPolicy>
CompleteConfiguration. getExpiryPolicyFactory()
Gets theFactory
for theExpiryPolicy
to be used for caches.Factory<ExpiryPolicy>
MutableConfiguration. getExpiryPolicyFactory()
Gets theFactory
for theExpiryPolicy
to be used for caches.Methods in javax.cache.configuration with parameters of type Factory Modifier and Type Method Description MutableCacheEntryListenerConfiguration<K,V>
MutableCacheEntryListenerConfiguration. setCacheEntryEventFilterFactory(Factory<? extends CacheEntryEventFilter<? super K,? super V>> filterFactory)
Sets theFactory
to be used to create aCacheEntryEventFilter
.MutableCacheEntryListenerConfiguration<K,V>
MutableCacheEntryListenerConfiguration. setCacheEntryListenerFactory(Factory<? extends CacheEntryListener<? super K,? super V>> listenerFactory)
Sets theFactory
to be used to create aCacheEntryListener
.MutableConfiguration<K,V>
MutableConfiguration. setCacheLoaderFactory(Factory<? extends CacheLoader<K,V>> factory)
Set theCacheLoader
factory.MutableConfiguration<K,V>
MutableConfiguration. setCacheWriterFactory(Factory<? extends CacheWriter<? super K,? super V>> factory)
Set theCacheWriter
factory.MutableConfiguration<K,V>
MutableConfiguration. setExpiryPolicyFactory(Factory<? extends ExpiryPolicy> factory)
Set theFactory
for theExpiryPolicy
.Constructors in javax.cache.configuration with parameters of type Factory Constructor Description MutableCacheEntryListenerConfiguration(Factory<? extends CacheEntryListener<? super K,? super V>> listenerFactory, Factory<? extends CacheEntryEventFilter<? super K,? super V>> filterFactory, boolean isOldValueRequired, boolean isSynchronous)
Constructs aMutableCacheEntryListenerConfiguration
. -
Uses of Factory in javax.cache.expiry
Methods in javax.cache.expiry that return Factory Modifier and Type Method Description static Factory<ExpiryPolicy>
AccessedExpiryPolicy. factoryOf(Duration duration)
Obtains aFactory
for an AccessedExpiryPolicy
.static Factory<ExpiryPolicy>
CreatedExpiryPolicy. factoryOf(Duration duration)
Obtains aFactory
for a CreatedExpiryPolicy
.static Factory<ExpiryPolicy>
EternalExpiryPolicy. factoryOf()
Obtains aFactory
for an EternalExpiryPolicy
.static Factory<ExpiryPolicy>
ModifiedExpiryPolicy. factoryOf(Duration duration)
Obtains aFactory
for a ModifiedExpiryPolicy
.static Factory<ExpiryPolicy>
TouchedExpiryPolicy. factoryOf(Duration duration)
Obtains aFactory
for a TouchedExpiryPolicy
.
-