Module org.apache.wicket.core
Package org.apache.wicket.markup
Class DefaultMarkupResourceStreamProvider
java.lang.Object
org.apache.wicket.markup.DefaultMarkupResourceStreamProvider
- All Implemented Interfaces:
IMarkupResourceStreamProvider
public class DefaultMarkupResourceStreamProvider
extends Object
implements IMarkupResourceStreamProvider
Wicket default implementation for loading the markup resource stream associated with a
MarkupContainer.
- Author:
- Jonathan Locke, Juergen Donnerstag
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetMarkupResourceStream
(MarkupContainer container, Class<?> containerClass) Create a new markup resource stream for the container.
-
Constructor Details
-
DefaultMarkupResourceStreamProvider
public DefaultMarkupResourceStreamProvider()Constructor.
-
-
Method Details
-
getMarkupResourceStream
Create a new markup resource stream for the container.Note: it will only called once, the IResourceStream will be cached by MarkupCache.
Note: IResourceStreamLocators should be used in case the strategy to find a markup resource should be extended for ALL components of your application.
- Specified by:
getMarkupResourceStream
in interfaceIMarkupResourceStreamProvider
- Parameters:
container
-containerClass
- The container the markup should be associated with- Returns:
- A IResourceStream if the resource was found
- See Also:
-