org.apache.wicket.markup
Class DefaultMarkupResourceStreamProvider

java.lang.Object
  extended by org.apache.wicket.markup.DefaultMarkupResourceStreamProvider
All Implemented Interfaces:
IMarkupResourceStreamProvider

public class DefaultMarkupResourceStreamProvider
extends java.lang.Object
implements IMarkupResourceStreamProvider

Wicket default implementation for loading the markup resource stream associated with a MarkupContainer.

Author:
Jonathan Locke, Juergen Donnerstag

Constructor Summary
DefaultMarkupResourceStreamProvider()
          Constructor.
 
Method Summary
 IResourceStream getMarkupResourceStream(MarkupContainer container, java.lang.Class containerClass)
          Create a new markup resource stream for the container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMarkupResourceStreamProvider

public DefaultMarkupResourceStreamProvider()
Constructor.

Method Detail

getMarkupResourceStream

public IResourceStream getMarkupResourceStream(MarkupContainer container,
                                               java.lang.Class containerClass)
Create a new markup resource stream for the container.

Note: it will only called once, the IResourceStream will be cached by MarkupCache.

Note: IResourceStreamLocators should be used in case the strategy to find a markup resource should be extended for ALL components of your application.

Specified by:
getMarkupResourceStream in interface IMarkupResourceStreamProvider
Parameters:
container -
containerClass - The container the markup should be associated with
Returns:
A IResourceStream if the resource was found
See Also:
org.apache.wicket.util.resource.locator.IResourceStream, DefaultMarkupResourceStreamProvider


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.