Declarative Configuration

Cache extensions are configured per cache. Each cache can have zero or more.

You configure a cache extension by adding a cacheExceptionHandlerFactory element as shown in the following example:

<cache ...> 
    <cacheExtensionFactory 
     class="com.example.FileWatchingCacheRefresherExtensionFactory" 
    properties="refreshIntervalMillis=18000, loaderTimeout=3000, 
     flushPeriod=whatever, someOtherProperty=someValue ..."/> 
</cache>