public void addCacheListener(CacheListener<K, V> aListener) {
    if (aListener == null) {
      throw new IllegalArgumentException(
          "addCacheListener parameter was null");
    }
    synchronized (regionAttributes) {
      regionAttributes.addCacheListener(aListener);
    }
  }
Adds a cache listener to the end of the list of cache listeners on this factory.

@param aListener the cache listener to add to the factory.
@throws IllegalArgumentException if {@code aListener} is null
@since GemFire 5.0
geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java