public interface IMarkupResourceStreamProvider
Since 1.5 you may also use Component.setMarkup() or getMarkup() to attach Markup to your component.
Note: IResourceStreamLocators should be used in case the strategy to find a markup resource is meant to be applied to ALL components of your application.
Note: See IMarkupCacheKeyProvider if you wish to implement your own cache key algorithm, which sometimes is useful when the MarkupContainer implements its own IMarkupResourceStreamProvider as well.
IMarkupCacheKeyProvider
Modifier and Type | Method and Description |
---|---|
IResourceStream |
getMarkupResourceStream(MarkupContainer container,
Class<?> containerClass)
Create a new markup resource stream for the container.
|
IResourceStream getMarkupResourceStream(MarkupContainer container, Class<?> containerClass)
Note: usually it will only called once, as the IResourceStream will be cached by MarkupCache.
container
- The MarkupContainer which requests to load the Markup resource streamcontainerClass
- The container the markup should be associated withCopyright © 2006–2022 Apache Software Foundation. All rights reserved.