[exo-jcr-commits] exo-jcr SVN: r983 - in kernel/branches/mc-int-branch: 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 06:28:57 EST 2009
Author: mstruk
Date: 2009-12-10 06:28:57 -0500 (Thu, 10 Dec 2009)
New Revision: 983
Modified:
kernel/branches/mc-int-branch/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExoCache.java
kernel/branches/mc-int-branch/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/AbstractExoCache.java
Log:
Merged trunk changes up to r978
Modified: kernel/branches/mc-int-branch/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExoCache.java
===================================================================
--- kernel/branches/mc-int-branch/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExoCache.java 2009-12-10 11:10:42 UTC (rev 982)
+++ kernel/branches/mc-int-branch/exo.kernel.component.cache/src/main/java/org/exoplatform/services/cache/ExoCache.java 2009-12-10 11:28:57 UTC (rev 983)
@@ -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/branches/mc-int-branch/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/AbstractExoCache.java
===================================================================
--- kernel/branches/mc-int-branch/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/AbstractExoCache.java 2009-12-10 11:10:42 UTC (rev 982)
+++ kernel/branches/mc-int-branch/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/AbstractExoCache.java 2009-12-10 11:28:57 UTC (rev 983)
@@ -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