Package org.apache.wicket.markup.loader
Class DefaultMarkupLoader
- java.lang.Object
-
- org.apache.wicket.markup.loader.DefaultMarkupLoader
-
- All Implemented Interfaces:
IMarkupLoader
public class DefaultMarkupLoader extends Object implements IMarkupLoader
This is Wickets default markup loader. It uses theInheritedMarkupMarkupLoader
andSimpleMarkupLoader
to load the markup associated with aMarkupContainer
.- Author:
- Juergen Donnerstag
-
-
Constructor Summary
Constructors Constructor Description DefaultMarkupLoader()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Markup
loadMarkup(MarkupContainer container, MarkupResourceStream markupResourceStream, IMarkupLoader baseLoader, boolean enforceReload)
UsesSimpleMarkupLoader
to load the resource(s), read it and check if markup inheritance applies.
-
-
-
Constructor Detail
-
DefaultMarkupLoader
public DefaultMarkupLoader()
Constructor.
-
-
Method Detail
-
loadMarkup
public final Markup loadMarkup(MarkupContainer container, MarkupResourceStream markupResourceStream, IMarkupLoader baseLoader, boolean enforceReload) throws IOException, ResourceStreamNotFoundException
UsesSimpleMarkupLoader
to load the resource(s), read it and check if markup inheritance applies. If yes, load the required other markup and merge them usingInheritedMarkupMarkupLoader
.- Specified by:
loadMarkup
in interfaceIMarkupLoader
- Parameters:
container
- The original requesting markup containermarkupResourceStream
- The markup resource stream to loadbaseLoader
- This parameter can be use to chain IMarkupLoadersenforceReload
- The cache will be ignored and all, including inherited markup files, will be reloaded. Whatever is in the cache, it will be ignored- Returns:
- The markup
- Throws:
IOException
ResourceStreamNotFoundException
-
-