|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMarkupCache
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.
Method Summary | |
---|---|
void |
clear()
Clear markup cache and force reload of all markup data |
Markup |
getMarkup(MarkupContainer container,
java.lang.Class<?> clazz,
boolean enforceReload)
Gets any (immutable) markup resource for the container or any of its parent classes (markup inheritance) |
MarkupStream |
getMarkupStream(MarkupContainer container,
boolean enforceReload,
boolean throwException)
Gets a fresh markup stream that contains the (immutable) markup resource for this class. |
boolean |
hasAssociatedMarkup(MarkupContainer container)
Check if container has associated markup |
Markup |
removeMarkup(java.lang.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()
|
Method Detail |
---|
void clear()
Markup getMarkup(MarkupContainer container, java.lang.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 ignored
MarkupStream getMarkupStream(MarkupContainer container, boolean enforceReload, boolean throwException)
container
- The container the markup should be associated withenforceReload
- The cache will be ignored and all, including inherited markup files, will be
reloaded. Whatever is in the cache, it will be ignoredthrowException
- If true, throw an exception, if markup could not be found
boolean hasAssociatedMarkup(MarkupContainer container)
container
- The container the markup should be associated with
Markup removeMarkup(java.lang.String cacheKey)
cacheKey
-
MarkupResourceStream.getCacheKey()
int size()
void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |