public interface IMarkupCache
MarkupSettings). Via MarkupFactory
the markup cache is used by every Component to get its associated
markup stream.| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear markup cache and force reload of all markup data
|
Markup |
getMarkup(MarkupContainer container,
Class<?> clazz,
boolean enforceReload)
Gets any (immutable) markup resource for the container or any of its parent classes (markup
inheritance)
|
IMarkupFragment |
removeMarkup(String cacheKey)
Remove the markup associated with the cache key from the cache including all dependent
markups (markup inheritance)
|
void |
shutdown()
Will be called by the application while shutting down.
|
int |
size() |
void clear()
Markup getMarkup(MarkupContainer container, Class<?> clazz, boolean enforceReload)
container - The original requesting markup containerclazz - The class to get the associated markup for. If null, the container's class is
used, but it can be a parent class of the container as well (markup inheritance)enforceReload - The cache will be ignored and all, including inherited markup files, will be
reloaded. Whatever is in the cache, it will be ignoredIMarkupFragment removeMarkup(String cacheKey)
cacheKey - MarkupResourceStream.getCacheKey()int size()
void shutdown()
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.