org.apache.wicket.markup.loader
Interface IMarkupLoader

All Known Implementing Classes:
DefaultMarkupLoader, InheritedMarkupMarkupLoader, SimpleMarkupLoader

public interface IMarkupLoader

IMarkupLoader are loading the actual markup for a specific Wicket container and resource stream. In case of markup inheritance it means that 2+ markup files must be read and merged. In order to be flexible the interface has been designed in a way that multiple IMarkupLoader can be chained to easily build up more complex loaders.

Author:
Juergen Donnerstag
See Also:
MarkupCache, MarkupParser, MarkupParserFactory

Method Summary
 Markup loadMarkup(MarkupContainer container, MarkupResourceStream markupResourceStream, IMarkupLoader baseLoader, boolean enforceReload)
          Loads markup from a resource stream.
 

Method Detail

loadMarkup

Markup loadMarkup(MarkupContainer container,
                  MarkupResourceStream markupResourceStream,
                  IMarkupLoader baseLoader,
                  boolean enforceReload)
                  throws IOException,
                         ResourceStreamNotFoundException
Loads markup from a resource stream.

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:
IOException
ResourceStreamNotFoundException


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