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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 7.4
    • Fix Version/s: 8.1-milestone-1
    • Component/s: {Unused} Cache
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: