Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.wicket.util.resource.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 org.apache.wicket.util.resource.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:
        IResourceStreamLocator, DefaultMarkupResourceStreamProvider