[exo-jcr-commits] exo-jcr SVN: r978 - in kernel/trunk: exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Dec 10 03:01:31 EST 2009


Author: nfilotto
Date: 2009-12-10 03:01:31 -0500 (Thu, 10 Dec 2009)
New Revision: 978

Modified:
   kernel/trunk/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExoCache.java
   kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/AbstractExoCache.java
Log:
EXOJCR-296: Apply some remarks after the work done for KER-119
Rollback the changes made in the ExoCache Interface 

Modified: kernel/trunk/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExoCache.java
===================================================================
--- kernel/trunk/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExoCache.java	2009-12-09 17:04:54 UTC (rev 977)
+++ kernel/trunk/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExoCache.java	2009-12-10 08:01:31 UTC (rev 978)
@@ -70,7 +70,7 @@
     * @param key the cache key
     * @return the cached value which may be evaluated to null
     */
-   public V get(Serializable key) throws Exception;
+   public V get(Serializable key);
 
    /**
     * Removes an entry from the cache.
@@ -79,7 +79,7 @@
     * @return the previously cached value or null if no entry existed or that entry value was evaluated to null
     * @throws NullPointerException if the provided key is null
     */
-   public V remove(Serializable key) throws Exception;
+   public V remove(Serializable key) throws NullPointerException;
 
    /**
     * Performs a put in the cache.
@@ -88,7 +88,7 @@
     * @param value the cached value
     * @throws NullPointerException if the key is null
     */
-   public void put(K key, V value) throws Exception;
+   public void put(K key, V value) throws NullPointerException;
 
    /**
     * Performs a put of all the entries provided by the map argument.
@@ -104,7 +104,7 @@
     */
    @Managed
    @ManagedDescription("Evict all entries of the cache")
-   public void clearCache() throws Exception;
+   public void clearCache();
 
    /**
     * Selects a subset of the cache.
@@ -198,7 +198,7 @@
     * @return the list of cached objects
     * @throws Exception any exception
     */
-   public List<? extends V> removeCachedObjects() throws Exception;
+   public List<? extends V> removeCachedObjects();
 
    /**
     * Add a listener.

Modified: kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/AbstractExoCache.java
===================================================================
--- kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/AbstractExoCache.java	2009-12-09 17:04:54 UTC (rev 977)
+++ kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/AbstractExoCache.java	2009-12-10 08:01:31 UTC (rev 978)
@@ -106,7 +106,7 @@
    /**
     * {@inheritDoc}
     */
-   public void clearCache() throws Exception
+   public void clearCache()
    {
       final Node<K, V> rootNode = cache.getRoot();
       for (Node<K, V> node : rootNode.getChildren())
@@ -124,7 +124,7 @@
     * {@inheritDoc}
     */
    @SuppressWarnings("unchecked")
-   public V get(Serializable name) throws Exception
+   public V get(Serializable name)
    {
       if (name == null)
       {
@@ -231,7 +231,7 @@
    /**
     * {@inheritDoc}
     */
-   public void put(K key, V value) throws Exception
+   public void put(K key, V value) throws NullPointerException
    {
       if (key == null)
       {
@@ -244,7 +244,7 @@
    /**
     * Only puts the data into the cache nothing more
     */
-   private V putOnly(K key, V value) throws Exception
+   private V putOnly(K key, V value)
    {
       return cache.put(getFqn(key), key, value);
    }
@@ -296,7 +296,7 @@
     * {@inheritDoc}
     */
    @SuppressWarnings("unchecked")
-   public V remove(Serializable name) throws Exception
+   public V remove(Serializable name) throws NullPointerException
    {
       if (name == null)
       {
@@ -319,7 +319,7 @@
    /**
     * {@inheritDoc}
     */
-   public List<V> removeCachedObjects() throws Exception
+   public List<V> removeCachedObjects()
    {
       final List<V> list = getCachedObjects();
       clearCache();



More information about the exo-jcr-commits mailing list