| org.apache.wicket.markup.IMarkupCache
All known Subclasses: org.apache.wicket.markup.MarkupCache,
IMarkupCache | public interface IMarkupCache (Code) | | Each Wicket application has a single IMarkupCache associated with it (see
IMarkupSettings ). The markup cache is used by every Component to get
its associated markup stream. Note that it is the markup caches
responsibility to load the markup, if not yet done.
author: Juergen Donnerstag |
Method Summary | |
void | clear() | Markup | getMarkup(MarkupContainer container, Class clazz, boolean enforceReload) Gets any (immutable) markup resource for the container or any of its
parent classes (markup inheritance)
Parameters: container - The original requesting markup container Parameters: clazz - The class to get the associated markup for. | MarkupStream | getMarkupStream(MarkupContainer container, boolean enforceReload, boolean throwException) 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: enforceReload - The cache will be ignored and all, including inherited markupfiles, will be reloaded. | boolean | hasAssociatedMarkup(MarkupContainer container) | Markup | removeMarkup(String cacheKey) Remove the markup associated with the cache key from the cache including
all dependent markups (markup inheritance)
See Also: MarkupResourceStream.getCacheKey Parameters: cacheKey - The markup removed from the cache. | void | shutdown() Will be called by the application while shutting down. | int | size() |
clear | void clear()(Code) | | Clear markup cache and force reload of all markup data
|
getMarkup | Markup getMarkup(MarkupContainer container, Class clazz, boolean enforceReload)(Code) | | Gets any (immutable) markup resource for the container or any of its
parent classes (markup inheritance)
Parameters: container - The original requesting markup container Parameters: clazz - The class to get the associated markup for. If null, thecontainer's class is used, but it can be a parent class of thecontainer as well (markup inheritance) Parameters: enforceReload - The cache will be ignored and all, including inherited markupfiles, will be reloaded. Whatever is in the cache, it will beignored Markup resource |
getMarkupStream | MarkupStream getMarkupStream(MarkupContainer container, boolean enforceReload, 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: enforceReload - The cache will be ignored and all, including inherited markupfiles, will be reloaded. Whatever is in the cache, it will beignored Parameters: throwException - If true, throw an exception, if markup could not be found A stream of MarkupElement elements |
hasAssociatedMarkup | 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 | Markup removeMarkup(String cacheKey)(Code) | | Remove the markup associated with the cache key from the cache including
all dependent markups (markup inheritance)
See Also: MarkupResourceStream.getCacheKey Parameters: cacheKey - The markup removed from the cache. Null, if nothing was found. |
shutdown | void shutdown()(Code) | | Will be called by the application while shutting down. It allows the
markup cache to cleanup if necessary.
|
size | int size()(Code) | | the number of elements currently in the cache. |
|
|