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
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 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
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.