| java.lang.Object wicket.markup.MarkupCache
MarkupCache | public class MarkupCache (Code) | | Load markup and cache it for fast retrieval. If markup file changes, it'll be
removed and subsequently reloaded when needed.
author: Jonathan Locke author: Juergen Donnerstag |
MarkupCache | public MarkupCache(Application application)(Code) | | Constructor.
Parameters: application - |
clear | public void clear()(Code) | | Clear markup cache and force reload of all markup data
|
getMarkupStream | final public MarkupStream getMarkupStream(MarkupContainer container)(Code) | | Gets a fresh markup stream that contains the (immutable) markup resource
for this class.
Parameters: container - The container the markup should be associated with A stream of MarkupElement elements |
getMarkupStream | final public MarkupStream getMarkupStream(MarkupContainer container, boolean throwException)(Code) | | Gets a fresh markup stream that contains the (immutable) markup resource
for this class.
Parameters: container - The container the markup should be associated with Parameters: throwException - If true, throw an exception, if markup could not be found A stream of MarkupElement elements |
hasAssociatedMarkup | final public boolean hasAssociatedMarkup(MarkupContainer container)(Code) | | Check if container has associated markup
Parameters: container - The container the markup should be associated with True if this markup container has associated markup |
removeMarkup | public void removeMarkup(MarkupResourceStream markupResourceStream)(Code) | | Remove the markup from the cache and trigger all associated listeners
since: 1.2.3 Parameters: markupResourceStream - The resource stream |
size | public int size()(Code) | | the number of elements currently in the cache. |
|
|