Class DefaultMarkupResourceStreamProvider

    • Constructor Detail

      • DefaultMarkupResourceStreamProvider

        public DefaultMarkupResourceStreamProvider()
        Constructor.
    • Method Detail

      • getMarkupResourceStream

        public org.apache.wicket.util.resource.IResourceStream getMarkupResourceStream​(MarkupContainer container,
                                                                                       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