Class PluginCacheConfigurator


  • public class PluginCacheConfigurator
    extends Object
    A helper class to read cache configuration data for a plugin and register the defined caches with the cache factory. Definitions should look something like this:
     
     <cache-config>
         <cache-mapping>
               <cache-name>My Cache</cache-name>
               <scheme-name>optimistic</scheme-name>
               <init-params>
                   <init-param>
                       <param-name>back-size-high</param-name>
                       <param-value>131072</param-value>
                   </init-param>
                   <init-param>
                       <param-name>back-expiry</param-name>
                       <param-value>6h</param-value>
                   </init-param>
                   <init-param>
                       <param-name>back-size-low</param-name>
                       <param-value>117965</param-value>
                   </init-param>
               </init-params>
         </cache-mapping>
     </cache-config>
     
     
    • Constructor Detail

      • PluginCacheConfigurator

        public PluginCacheConfigurator()
    • Method Detail

      • setInputStream

        public void setInputStream​(InputStream configDataStream)
      • configure

        public void configure​(String pluginName)