I have been trying to seperate the eviction policy section of the tree cache configuration and load it seperatly with a java class while the cache is initilizing. I see that TreeCacheMban interface offers setEvictionPolicyConfig method that takes in config Elem. It is not clear what part of the configuration should this Element represent. Do we call this method for each region configuration or the ? Once it is set is this applied automatically?
You can configure eviction policy programatically starting from 1.3. Check it out there.