Add custom interceptors programmatically
Adding custom interceptors programatically In order to do that one needs to obtain a reference to the AdvancedCache. This can be done ass follows: Â CacheManager cm = getCacheManager();//magic Cache aCache = cm.getCache("aName"); AdvancedCache advCache = aCache.getAdvancedCache(); Â Then one of the addInterceptor() methods should be used to add the actual interceptor. For further documentation refer to AdvancedCache javadoc.