Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13258

Make it simpler to listen to Cache events by providing an adapter

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • 8.1-milestone-1
    • 7.4
    • {Unused} Cache
    • None
    • Unknown
    • N/A
    • N/A

    Description

      public class CacheEntryListenerAdapter<T> implements CacheEntryListener<T>
      {
          @Override
          public void cacheEntryAdded(CacheEntryEvent<T> event)
          {
              // Do nothing by default
          }
      
          @Override
          public void cacheEntryRemoved(CacheEntryEvent<T> event)
          {
              // Do nothing by default
          }
      
          @Override
          public void cacheEntryModified(CacheEntryEvent<T> event)
          {
              // Do nothing by default
          }
      }
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: