public final class


extends CacheEventListenerFactory
   ↳ net.sf.ehcache.event.CacheEventListenerFactory
     ↳ com.atlassian.jira.NoopCacheEventListenerFactory

Class Overview

Work-around for CACHE-95 / EHC-1089.

Due to this bug, the first cache that registers a listener configuration pollutes the default configuration with that listener. As a result, every cache thereafter gets that listener factory, too. To prevent this, we explicitly give the default configuration a listener factory that will deliver a single no-op listener on every cache. This ensures that the default configuration has at least one listener, which in turn makes the listener configuration clone itself properly. The extra listener call on every cache notification is unlikely to be at all significant.

This is only public because EhCache wants to instantiate a new one every time it creates a cache. Awesome.


Public Constructors
Public Methods
CacheEventListener createCacheEventListener(Properties properties)
Inherited Methods
From class net.sf.ehcache.event.CacheEventListenerFactory
From class java.lang.Object

Public Constructors

public NoopCacheEventListenerFactory ()

Public Methods

public CacheEventListener createCacheEventListener (Properties properties)