wip: per component markup resource loading
git-svn-id: https://svn.apache.org/repos/asf/incubator/wicket/trunk@459898 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/wicket-examples/src/java/wicket/examples/customresourceloading/PageWithCustomLoading.java b/wicket-examples/src/java/wicket/examples/customresourceloading/PageWithCustomLoading.java
index 3a0e313..6d3dd03 100644
--- a/wicket-examples/src/java/wicket/examples/customresourceloading/PageWithCustomLoading.java
+++ b/wicket-examples/src/java/wicket/examples/customresourceloading/PageWithCustomLoading.java
@@ -21,6 +21,7 @@
import java.net.URL;
import wicket.examples.WicketExamplePage;
+import wicket.markup.ContainerInfo;
import wicket.util.resource.IResourceStream;
import wicket.util.resource.UrlResourceStream;
@@ -45,9 +46,16 @@
* template from a database without any other component or the application
* having to know about it.
*
- * @see wicket.MarkupContainer#getMarkupResourceStreamOverride()
+ * @see wicket.MarkupContainer#newMarkupResourceStream(Class, ContainerInfo)
+ *
+ * @param containerClass
+ * The container the markup should be associated with
+ * @param containerInfo
+ * The container the markup should be associated with
+ * @return A IResourceStream if the resource was found
*/
- public IResourceStream getMarkupResourceStreamOverride()
+ public IResourceStream newMarkupResourceStream(final Class containerClass,
+ final ContainerInfo containerInfo)
{
// load a template with a totally different name from this package using
// this component's class loader