[jboss-cvs] JBossAS SVN: r75443 - in projects/jboss-mdr-cache/trunk: src and 14 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jul 7 08:35:42 EDT 2008


Author: alesj
Date: 2008-07-07 08:35:42 -0400 (Mon, 07 Jul 2008)
New Revision: 75443

Added:
   projects/jboss-mdr-cache/trunk/pom.xml
   projects/jboss-mdr-cache/trunk/src/main/
   projects/jboss-mdr-cache/trunk/src/main/org/
   projects/jboss-mdr-cache/trunk/src/main/org/jboss/
   projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/
   projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/
   projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/cache/
   projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/cache/JBossCacheCache.java
   projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/cache/JBossCacheCacheFactory.java
   projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/cache/JBossCacheCacheItem.java
   projects/jboss-mdr-cache/trunk/src/tests/
   projects/jboss-mdr-cache/trunk/src/tests/org/
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/MDRCacheAllTestSuite.java
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/MetaDataAllTestSuite.java
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/MetaDataContextTestSuite.java
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/CacheContextTestSuite.java
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.java
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicMetaDataUnitTestCase.java
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.java
   projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
Log:
Moving MDR's JBossCache into separate project.

Added: projects/jboss-mdr-cache/trunk/pom.xml
===================================================================
--- projects/jboss-mdr-cache/trunk/pom.xml	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/pom.xml	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,137 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <parent>
+    <groupId>org.jboss</groupId>
+    <artifactId>jboss-parent</artifactId>
+    <version>4-beta-2</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>jboss-mdr-cache</artifactId>
+  <version>2.0.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+  <name>JBoss MetaData Repository Cache</name>
+  <url>http://www.jboss.com/products/jbossmc</url>
+  <description>JBoss MetaData Repository</description>
+  <scm>
+    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/jboss-mdr-cache/trunk/</connection>
+    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/jboss-mdr-cache/trunk/</developerConnection>
+    <url>http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-mdr/trunk/</url>
+  </scm>
+
+  <properties>
+    <version.org.jboss.mdr>2.0.0-SNAPSHOT</version.org.jboss.mdr>
+  </properties>
+
+  <build>
+    <sourceDirectory>src/main</sourceDirectory>
+    <testSourceDirectory>src/tests</testSourceDirectory>
+    <finalName>${artifactId}</finalName>
+    <plugins>
+      <plugin>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.4.1</version>
+        <configuration>
+          <redirectTestOutputToFile>true</redirectTestOutputToFile>
+          <includes>
+            <include>org/jboss/test/**/*TestCase.java</include>
+          </includes>
+          <useSystemClassLoader>true</useSystemClassLoader>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+  <dependencies>
+    <!-- Global dependencies -->
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-mdr</artifactId>
+      <version>${version.org.jboss.mdr}</version>
+      <exclusions>
+        <exclusion>
+          <groupId>org.jboss</groupId>
+          <artifactId>jboss-common-core</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>jboss</groupId>
+          <artifactId>jboss-common-logging-spi</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.logging</groupId>
+      <artifactId>jboss-logging-spi</artifactId>
+      <version>2.0.5.GA</version>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-common-core</artifactId>
+      <version>2.2.7.GA</version>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.cache</groupId>
+      <artifactId>jbosscache-core</artifactId>
+      <version>2.1.1.GA</version>
+    </dependency>
+    <!-- Test dependencies -->
+    <dependency>
+       <groupId>org.jboss</groupId>
+       <artifactId>jboss-mdr</artifactId>
+       <version>${version.org.jboss.mdr}</version>
+       <type>test-jar</type>
+       <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-test</artifactId>
+      <version>1.0.5.GA</version>
+      <scope>test</scope>
+      <exclusions>
+        <exclusion>
+          <groupId>org.jboss</groupId>
+          <artifactId>jboss-common-core</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>jboss</groupId>
+          <artifactId>jboss-common-logging-spi</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>jboss</groupId>
+          <artifactId>jboss-common-logging-log4j</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>jboss.profiler.jvmti</groupId>
+          <artifactId>jboss-profiler-jvmti</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>log4j</groupId>
+          <artifactId>log4j</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>junit</groupId>
+          <artifactId>junit</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.ant</groupId>
+          <artifactId>ant</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.apache.ant</groupId>
+          <artifactId>ant-junit</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.4</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+</project>
\ No newline at end of file

Added: projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/cache/JBossCacheCache.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/cache/JBossCacheCache.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/cache/JBossCacheCache.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,64 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.metadata.plugins.cache;
+
+/**
+ * JBoss Cache cache.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBossCacheCache<K, V> implements Cache<K, V>
+{
+   private String fqn;
+   private org.jboss.cache.Cache<K,V> cache;
+
+   public JBossCacheCache(String fqn, org.jboss.cache.Cache<K, V> cache)
+   {
+      if (fqn == null)
+         throw new IllegalArgumentException("Null fqn");
+      if (cache == null)
+         throw new IllegalArgumentException("Null cache");
+
+      this.fqn = fqn;
+      this.cache = cache;
+   }
+
+   public V put(K key, V value)
+   {
+      return cache.put(fqn, key, value);
+   }
+
+   public V get(K key)
+   {
+      return cache.get(fqn, key);
+   }
+
+   public V remove(K key)
+   {
+      return cache.remove(fqn, key);
+   }
+
+   public void clear()
+   {
+      cache.clearData(fqn);
+   }
+}
\ No newline at end of file

Added: projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/cache/JBossCacheCacheFactory.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/cache/JBossCacheCacheFactory.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/cache/JBossCacheCacheFactory.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,160 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.metadata.plugins.cache;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.ListIterator;
+
+import org.jboss.cache.config.Configuration;
+import org.jboss.logging.Logger;
+
+/**
+ * JBoss Cache cache factory.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBossCacheCacheFactory implements CacheFactory
+{
+   private final Logger log = Logger.getLogger(getClass());
+
+   private String file;
+   private Configuration configuration;
+   private List<org.jboss.cache.Cache> caches;
+
+   public JBossCacheCacheFactory()
+   {
+      caches = new ArrayList<org.jboss.cache.Cache>();
+   }
+
+   public JBossCacheCacheFactory(String file)
+   {
+      this();
+      this.file = file;
+   }
+
+   public JBossCacheCacheFactory(Configuration configuration)
+   {
+      this();
+      this.configuration = configuration;
+   }
+
+   public String createFqn(Object owner)
+   {
+      Class<?> clazz = owner.getClass();
+      return clazz.getSimpleName() + "-" + System.identityHashCode(owner);
+   }
+
+   /**
+    * Create cache factory.
+    *
+    * @return the cache factory
+    */
+   protected <K, V> org.jboss.cache.CacheFactory<K, V> createFactory()
+   {
+      return new org.jboss.cache.DefaultCacheFactory<K, V>();
+   }
+
+   /**
+    * Create cache.
+    *
+    * @param factory the cache factory
+    * @return new cache instance
+    */
+   protected <K, V> org.jboss.cache.Cache<K, V> createCache(org.jboss.cache.CacheFactory<K, V> factory)
+   {
+      if (file != null)
+         return factory.createCache(file);
+      else if (configuration != null)
+         return factory.createCache(configuration);
+      else
+         return factory.createCache();
+   }
+
+   /**
+    * Get cache.
+    * Store it, in order to do proper stop/destroy.
+    *
+    * @param factory the cache factory
+    * @return new cache instance
+    */
+   private <K, V> org.jboss.cache.Cache<K, V> getCache(org.jboss.cache.CacheFactory<K, V> factory)
+   {
+      org.jboss.cache.Cache<K, V> cache = createCache(factory);
+      caches.add(cache);
+      return cache;
+   }
+
+   public <K, V> Cache<K, V> createCache(Class<K> keyClass, Class<V> valueClass, String rootFqn)
+   {
+      org.jboss.cache.CacheFactory<K, V> factory = createFactory();
+      org.jboss.cache.Cache<K, V> cache = getCache(factory);
+      return new JBossCacheCache<K,V>(rootFqn, cache);
+   }
+
+   public <V> CacheItem<V> createCacheItem(Class<V> valueClass, String rootFqn)
+   {
+      org.jboss.cache.CacheFactory<Object, V> factory = createFactory();
+      org.jboss.cache.Cache<Object, V> cache = getCache(factory);
+      return new JBossCacheCacheItem<V>(rootFqn, cache);
+   }
+
+   /**
+    * Stop created cache.
+    */
+   public void stop()
+   {
+      ListIterator<org.jboss.cache.Cache> iter = caches.listIterator(caches.size());
+      while(iter.hasPrevious())
+      {
+         org.jboss.cache.Cache cache = iter.previous();
+         try
+         {
+            cache.stop();
+         }
+         catch (Throwable t)
+         {
+            log.debug("Exception while stopping cache: " + cache + ", problem: " + t);
+         }
+      }
+   }
+
+   /**
+    * Destroy created policies.
+    */
+   public void destroy()
+   {
+      ListIterator<org.jboss.cache.Cache> iter = caches.listIterator(caches.size());
+      while(iter.hasPrevious())
+      {
+         org.jboss.cache.Cache cache = iter.previous();
+         try
+         {
+            cache.destroy();
+         }
+         catch (Throwable t)
+         {
+            log.debug("Exception while destroying cache: " + cache + ", problem: " + t);
+         }
+      }
+   }
+}

Added: projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/cache/JBossCacheCacheItem.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/cache/JBossCacheCacheItem.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/main/org/jboss/metadata/plugins/cache/JBossCacheCacheItem.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.metadata.plugins.cache;
+
+import org.jboss.cache.Cache;
+
+/**
+ * JBoss Cache cache item.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBossCacheCacheItem<V> extends JBossCacheCache<Object, V> implements CacheItem<V>
+{
+   private static final Object KEY = "<KEY>";
+
+   public JBossCacheCacheItem(String fqn, Cache<Object, V> objectVCache)
+   {
+      super(fqn, objectVCache);
+   }
+
+   public V put(V value)
+   {
+      return put(KEY, value);
+   }
+
+   public V get()
+   {
+      return get(KEY);
+   }
+}
\ No newline at end of file

Added: projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/MDRCacheAllTestSuite.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/MDRCacheAllTestSuite.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/MDRCacheAllTestSuite.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+import org.jboss.test.metadata.MetaDataAllTestSuite;
+
+/**
+ * MDR Cache all tests.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class MDRCacheAllTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("MDR Cache Tests");
+
+      suite.addTest(MetaDataAllTestSuite.suite());
+
+      return suite;
+   }
+}

Added: projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/MetaDataAllTestSuite.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/MetaDataAllTestSuite.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/MetaDataAllTestSuite.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+import org.jboss.test.metadata.context.MetaDataContextTestSuite;
+
+/**
+ * MetaData All Test Suite.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class MetaDataAllTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("MetaData Tests");
+
+      suite.addTest(MetaDataContextTestSuite.suite());
+
+      return suite;
+   }
+}

Added: projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/MetaDataContextTestSuite.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/MetaDataContextTestSuite.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/MetaDataContextTestSuite.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+import org.jboss.test.metadata.context.cache.CacheContextTestSuite;
+
+/**
+ * MetaDataContextTestSuite.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class MetaDataContextTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("MetaDataContext Tests");
+
+      suite.addTest(CacheContextTestSuite.suite());
+
+      return suite;
+   }
+}

Added: projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/CacheContextTestSuite.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/CacheContextTestSuite.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/CacheContextTestSuite.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,65 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+import org.jboss.test.metadata.context.cache.test.JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase;
+import org.jboss.test.metadata.context.cache.test.JBCCacheContextWithFactoryBasicMetaDataUnitTestCase;
+import org.jboss.test.metadata.context.cache.test.JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase;
+import org.jboss.test.metadata.context.cache.test.JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase;
+import org.jboss.test.metadata.context.cache.test.JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase;
+import org.jboss.test.metadata.context.cache.test.JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase;
+import org.jboss.test.metadata.context.cache.test.JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase;
+import org.jboss.test.metadata.context.cache.test.JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase;
+
+/**
+ * CacheContextTestSuite.
+ *
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ * @version $Revision: 75335 $
+ */
+public class CacheContextTestSuite extends TestSuite
+{
+   public static void main(String[] args)
+   {
+      TestRunner.run(suite());
+   }
+
+   public static Test suite()
+   {
+      TestSuite suite = new TestSuite("Cache Context Tests");
+
+      suite.addTest(new TestSuite(JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.class));
+      suite.addTest(new TestSuite(JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.class));
+      suite.addTest(new TestSuite(JBCCacheContextWithFactoryBasicMetaDataUnitTestCase.class));
+      suite.addTest(new TestSuite(JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase.class));
+      suite.addTest(new TestSuite(JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase.class));
+      suite.addTest(new TestSuite(JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase.class));
+      suite.addTest(new TestSuite(JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.class));
+      suite.addTest(new TestSuite(JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.class));
+
+      return suite;
+   }
+}

Added: projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase extends CacheContextWithFactoryBasicAnnotationsUnitTestCase
+{
+   public JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   protected CacheFactory createFactory()
+   {
+      return new JBossCacheCacheFactory();
+   }
+}
\ No newline at end of file

Added: projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicMetaDataUnitTestCase.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicMetaDataUnitTestCase.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * CacheContextWithFactoryBasicMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCCacheContextWithFactoryBasicMetaDataUnitTestCase extends CacheContextWithFactoryBasicMetaDataUnitTestCase
+{
+   public JBCCacheContextWithFactoryBasicMetaDataUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   protected CacheFactory createFactory()
+   {
+      return new JBossCacheCacheFactory();
+   }
+}
\ No newline at end of file

Added: projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase extends CacheMetaDataContextWithFactoryAnnotationUnitTestCase
+{
+   public JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   protected CacheFactory createFactory()
+   {
+      return new JBossCacheCacheFactory();
+   }
+}
\ No newline at end of file

Added: projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase extends CacheMetaDataContextWithFactoryMetaDataUnitTestCase
+{
+   public JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   protected CacheFactory createFactory()
+   {
+      return new JBossCacheCacheFactory();
+   }
+}
\ No newline at end of file

Added: projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase extends CacheParentContextWithFactoryBasicAnnotationsUnitTestCase
+{
+   public JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   protected CacheFactory createFactory()
+   {
+      return new JBossCacheCacheFactory();
+   }
+}
\ No newline at end of file

Added: projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase extends CacheParentContextWithFactoryBasicMetaDataUnitTestCase
+{
+   public JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   protected CacheFactory createFactory()
+   {
+      return new JBossCacheCacheFactory();
+   }
+}
\ No newline at end of file

Added: projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase extends SimpleCacheMetaDataContextWithFactoryUnitTestCase
+{
+   public JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   protected CacheFactory createFactory()
+   {
+      return new JBossCacheCacheFactory();
+   }
+}
\ No newline at end of file

Added: projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java	                        (rev 0)
+++ projects/jboss-mdr-cache/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java	2008-07-07 12:35:42 UTC (rev 75443)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase extends SimpleCacheParentMetaDataContextWithFactoryUnitTestCase
+{
+   public JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase(String name)
+   {
+      super(name);
+   }
+
+   protected CacheFactory createFactory()
+   {
+      return new JBossCacheCacheFactory();
+   }
+}
\ No newline at end of file




More information about the jboss-cvs-commits mailing list