You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2014/05/19 16:57:27 UTC

[2/4] git commit: WICKET-5592 Add a method to clear the cache of CachingResourceStreamLocator

WICKET-5592 Add a method to clear the cache of CachingResourceStreamLocator


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/234dc01d
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/234dc01d
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/234dc01d

Branch: refs/heads/master
Commit: 234dc01def692a28365dd08bd6ffb16d0b646a3b
Parents: 1274ea5
Author: Fridolin Jackstadt <fr...@lindenbaum.eu>
Authored: Thu May 15 13:57:42 2014 +0200
Committer: Fridolin Jackstadt <fr...@lindenbaum.eu>
Committed: Thu May 15 13:57:42 2014 +0200

----------------------------------------------------------------------
 .../resource/locator/caching/CachingResourceStreamLocator.java | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/234dc01d/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/caching/CachingResourceStreamLocator.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/caching/CachingResourceStreamLocator.java b/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/caching/CachingResourceStreamLocator.java
index 49301e2..a3f7c4f 100644
--- a/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/caching/CachingResourceStreamLocator.java
+++ b/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/caching/CachingResourceStreamLocator.java
@@ -137,4 +137,10 @@ public class CachingResourceStreamLocator implements IResourceStreamLocator
 	{
 		return delegate.newResourceNameIterator(path, locale, style, variation, extension, strict);
 	}
+
+	public void clearCache()
+	{
+		cache.clear();
+	}
+
 }