Author: olamy
Date: Sat Jun 22 13:35:49 2013
New Revision: 1495727

URL: http://svn.apache.org/r1495727
Log:
[DIRECTMEMORY-126] missed to add a class

Added:
    
directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache/EnterpriseFeaturesManager.java
   (with props)

Added: 
directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache/EnterpriseFeaturesManager.java
URL: 
http://svn.apache.org/viewvc/directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache/EnterpriseFeaturesManager.java?rev=1495727&view=auto
==============================================================================
--- 
directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache/EnterpriseFeaturesManager.java
 (added)
+++ 
directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache/EnterpriseFeaturesManager.java
 Sat Jun 22 13:35:49 2013
@@ -0,0 +1,70 @@
+package net.sf.ehcache;
+
+import net.sf.ehcache.pool.Pool;
+import net.sf.ehcache.pool.PoolableStore;
+import net.sf.ehcache.store.Store;
+import net.sf.ehcache.store.offheap.OffHeapStore;
+import net.sf.ehcache.transaction.SoftLockFactory;
+import net.sf.ehcache.transaction.SoftLockManager;
+import net.sf.ehcache.transaction.TransactionIDFactory;
+import net.sf.ehcache.util.UpdateChecker;
+import net.sf.ehcache.writer.writebehind.WriteBehind;
+
+/**
+ * Class name is hardcoded in ehcache so we need this one!!
+ * @author Olivier Lamy
+ * @since 0.2
+ */
+public class EnterpriseFeaturesManager
+    implements FeaturesManager
+{
+
+    private  CacheManager cacheManager;
+
+    public EnterpriseFeaturesManager( CacheManager cacheManager )
+    {
+        this.cacheManager = cacheManager;
+    }
+
+    @Override
+    public WriteBehind createWriteBehind( Cache cache )
+    {
+        return null;
+    }
+
+    @Override
+    public Store createStore( Cache cache, Pool<PoolableStore> onHeapPool, 
Pool<PoolableStore> onDiskPool )
+    {
+        return OffHeapStore.createOffHeapStore( cache );
+    }
+
+    @Override
+    public TransactionIDFactory createTransactionIDFactory()
+    {
+        return null;
+    }
+
+    @Override
+    public SoftLockManager createSoftLockManager( Ehcache cache, 
SoftLockFactory lockFactory )
+    {
+        return null;
+    }
+
+    @Override
+    public void startup()
+    {
+
+    }
+
+    @Override
+    public void dispose()
+    {
+
+    }
+
+    @Override
+    public UpdateChecker createUpdateChecker()
+    {
+        return null;
+    }
+}

Propchange: 
directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache/EnterpriseFeaturesManager.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
directmemory/trunk/integrations/ehcache/src/main/java/net/sf/ehcache/EnterpriseFeaturesManager.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision


Reply via email to