wicket.markup
Class MarkupCache

java.lang.Object
  extended bywicket.markup.MarkupCache

public class MarkupCache
extends java.lang.Object

Load markup and cache it for fast retrieval. If markup file changes, it'll be automatically reloaded.

Author:
Jonathan Locke, Juergen Donnerstag

Constructor Summary
MarkupCache(Application application)
          Constructor.
 
Method Summary
 void clear()
          Clear markup cache and force reload of all markup data
 MarkupStream getMarkupStream(MarkupContainer container, java.lang.Class clazz)
          Gets a fresh markup stream that contains the (immutable) markup resource for this class.
 boolean hasAssociatedMarkup(MarkupContainer container, java.lang.Class clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkupCache

public MarkupCache(Application application)
Constructor.

Parameters:
application -
Method Detail

getMarkupStream

public final MarkupStream getMarkupStream(MarkupContainer container,
                                          java.lang.Class clazz)
Gets a fresh markup stream that contains the (immutable) markup resource for this class.

Parameters:
container - The container the markup should be associated with
clazz - The class to get the associated markup for. If null, the the container's class is used, but it can be a parent class of container as well.
Returns:
A stream of MarkupElement elements

hasAssociatedMarkup

public final boolean hasAssociatedMarkup(MarkupContainer container,
                                         java.lang.Class clazz)
Parameters:
container -
clazz -
Returns:
True if this markup container has associated markup

clear

public void clear()
Clear markup cache and force reload of all markup data



Copyright © 2004-2005 Wicket developers. All Rights Reserved.