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
Constructors Constructor Description DefaultMarkupResourceStreamProvider()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IResourceStream
getMarkupResourceStream(MarkupContainer container, Class<?> containerClass)
Create a new markup resource stream for the container.
-
-
-
Constructor Detail
-
DefaultMarkupResourceStreamProvider
public DefaultMarkupResourceStreamProvider()
Constructor.
-
-
Method Detail
-
getMarkupResourceStream
public IResourceStream getMarkupResourceStream(MarkupContainer container, Class<?> containerClass)
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:
IResourceStreamLocator
,DefaultMarkupResourceStreamProvider
-
-