package org.infinispan.demo;

import org.infinispan.Cache;
import org.infinispan.manager.DefaultCacheManager;
import org.infinispan.manager.EmbeddedCacheManager;

public class CacheListener {

    public static void main(String[] args) {
        EmbeddedCacheManager cm = new DefaultCacheManager();
        Cache<String, String> cache = cm.getCache();
        cache.addListener(new EntryListener());

        for (int i = 0; i < 100; i++) {
            cache.put("key" + i, "value" + i);
        }
        cm.stop();
    }
}

@@ -52,16 +52,137 @@
 .Cache;%0A
+import org.infinispan.configuration.cache.Configuration;%0Aimport org.infinispan.configuration.cache.ConfigurationBuilder;%0A
 import o
@@ -220,24 +220,24 @@
 cheManager;%0A
-
 import org.i
@@ -348,24 +348,89 @@
 g%5B%5D args) %7B%0A
+        Configuration conf = new ConfigurationBuilder().build();%0A
         Embe
@@ -475,16 +475,20 @@
 Manager(
+conf
 );%0A     

Fix default config