Class SherpaCacheLogger

  • All Implemented Interfaces:
    org.ehcache.event.CacheEventListener<Object,​Object>

    public class SherpaCacheLogger
    extends Object
    implements org.ehcache.event.CacheEventListener<Object,​Object>
    This is a EHCache listner responsible for logging sherpa cache events. It is bound to the sherpa cache via the dspace/config/ehcache.xml file. We need a dedicated Logger for each cache as the CacheEvent doesn't include details about where the event occur
    Author:
    Mykhaylo Boychuk (mykhaylo.boychuk at 4science.com)
    • Constructor Detail

      • SherpaCacheLogger

        public SherpaCacheLogger()
    • Method Detail

      • onEvent

        public void onEvent​(org.ehcache.event.CacheEvent<?,​?> cacheEvent)
        Specified by:
        onEvent in interface org.ehcache.event.CacheEventListener<Object,​Object>