Module org.apache.wicket.core
Package org.apache.wicket.markup.loader
Class InheritedMarkupMarkupLoader
- java.lang.Object
-
- org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader
-
- All Implemented Interfaces:
IMarkupLoader
public class InheritedMarkupMarkupLoader extends Object implements IMarkupLoader
Merge the 2+ markups involved in markup inheritance. From a users perspective there is only one markup associated with the component, the merged one.- Author:
- Juergen Donnerstag
-
-
Constructor Summary
Constructors Constructor Description InheritedMarkupMarkupLoader()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Markup
loadMarkup(MarkupContainer container, MarkupResourceStream markupResourceStream, IMarkupLoader baseLoader, boolean enforceReload)
Load the markup from the resource stream with the base MarkupLoader provided, than check if markup inheritance must be applied.
-
-
-
Method Detail
-
loadMarkup
public final Markup loadMarkup(MarkupContainer container, MarkupResourceStream markupResourceStream, IMarkupLoader baseLoader, boolean enforceReload) throws IOException, org.apache.wicket.util.resource.ResourceStreamNotFoundException
Load the markup from the resource stream with the base MarkupLoader provided, than check if markup inheritance must be applied. If yes, than load the base markup and merge them.- 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
org.apache.wicket.util.resource.ResourceStreamNotFoundException
-
-