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 Type
    Method
    Description
    Return the cached Configuration, or null of the cache is empty or unprimed.
    void
    setConfiguration(T context, Configuration configuration)
    Store the given Configuration into the cache for later retrieval.

    Methods inherited from interface org.ocpsoft.common.pattern.Specialized

    handles

    Methods inherited from interface org.ocpsoft.common.pattern.Weighted

    priority
  • Method Details

    • getConfiguration

      Configuration getConfiguration(T context)
      Return the cached Configuration, or null of the cache is empty or unprimed.
    • setConfiguration

      void setConfiguration(T context, Configuration configuration)
      Store the given Configuration into the cache for later retrieval.