Package org.ocpsoft.rewrite.spi
Interface ConfigurationCacheProvider<T>
- All Superinterfaces:
org.ocpsoft.common.pattern.Specialized<Object>,org.ocpsoft.common.pattern.Weighted
public interface ConfigurationCacheProvider<T>
extends org.ocpsoft.common.pattern.Weighted, org.ocpsoft.common.pattern.Specialized<Object>
Provides
Configuration caching strategies for the Rewrite runtime environment.
Additional cache providers may be specified by providing a service activator file containing the name of your
implementations:
/META-INF/services/org.ocpsoft.rewrite.config.ConfigurationCacheProvider
--------------
com.example.ConfigurationCacheProviderImpl
- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration(T context) Return the cachedConfiguration, or null of the cache is empty or unprimed.voidsetConfiguration(T context, Configuration configuration) Store the givenConfigurationinto the cache for later retrieval.Methods inherited from interface org.ocpsoft.common.pattern.Specialized
handlesMethods inherited from interface org.ocpsoft.common.pattern.Weighted
priority
-
Method Details
-
getConfiguration
Return the cachedConfiguration, or null of the cache is empty or unprimed. -
setConfiguration
Store the givenConfigurationinto the cache for later retrieval.
-