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 2013/01/07 14:41:34 UTC

git commit: WICKET-4950 ResourceStreamLocator#newResourceNameIterator isn't a factory method anymore

Updated Branches:
  refs/heads/master 571d83a39 -> e61d7613d


WICKET-4950 ResourceStreamLocator#newResourceNameIterator isn't a factory method anymore


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

Branch: refs/heads/master
Commit: e61d7613dab70b00483a81c729255a7873c8530c
Parents: 571d83a
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Jan 7 15:41:05 2013 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Jan 7 15:41:05 2013 +0200

----------------------------------------------------------------------
 .../resource/locator/ResourceStreamLocator.java    |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/e61d7613/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/ResourceStreamLocator.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/ResourceStreamLocator.java b/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/ResourceStreamLocator.java
index ecc96c6..282ac6a 100644
--- a/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/ResourceStreamLocator.java
+++ b/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/ResourceStreamLocator.java
@@ -251,6 +251,13 @@ public class ResourceStreamLocator implements IResourceStreamLocator
 			}
 		}
 
-		return new ResourceNameIterator(realPath, style, variation, locale, extensions, strict);
+		return newResourceNameIterator(realPath, locale, style, variation, extensions, strict);
+	}
+
+	// TODO Wicket 7 Add this method to IResourceStreamLocator interface.
+	public IResourceNameIterator newResourceNameIterator(final String path, final Locale locale,
+		final String style, final String variation, final Iterable<String> extensions, final boolean strict)
+	{
+		return new ResourceNameIterator(path, style, variation, locale, extensions, strict);
 	}
 }