org.apache.wicket.markup.loader
Class DefaultMarkupLoader

java.lang.Object
  extended by org.apache.wicket.markup.loader.DefaultMarkupLoader
All Implemented Interfaces:
IMarkupLoader

public class DefaultMarkupLoader
extends java.lang.Object
implements IMarkupLoader

This is Wickets default markup loader. It uses the InheritedMarkupMarkupLoader and SimpleMarkupLoader to load the markup associated with a MarkupContainer.

Author:
Juergen Donnerstag

Constructor Summary
DefaultMarkupLoader()
          Constructor.
 
Method Summary
 Markup loadMarkup(MarkupContainer container, MarkupResourceStream markupResourceStream, IMarkupLoader baseLoader, boolean enforceReload)
          Uses SimpleMarkupLoader to load the resource(s), read it and check if markup inheritance applies.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMarkupLoader

public DefaultMarkupLoader()
Constructor.

Method Detail

loadMarkup

public final Markup loadMarkup(MarkupContainer container,
                               MarkupResourceStream markupResourceStream,
                               IMarkupLoader baseLoader,
                               boolean enforceReload)
                        throws java.io.IOException,
                               ResourceStreamNotFoundException
Uses SimpleMarkupLoader to load the resource(s), read it and check if markup inheritance applies. If yes, load the required other markup and merge them using InheritedMarkupMarkupLoader.

Specified by:
loadMarkup in interface IMarkupLoader
Parameters:
container - The original requesting markup container
markupResourceStream - The markup resource stream to load
baseLoader - This parameter can be use to chain IMarkupLoaders
enforceReload - 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:
java.io.IOException
ResourceStreamNotFoundException


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.