@ApplicationScoped public class ServerTemplateProvider extends Object implements TemplateProvider
Constructor and Description |
---|
ServerTemplateProvider() |
Modifier and Type | Method and Description |
---|---|
void |
provideTemplate(String url,
TemplateRenderingCallback renderingCallback)
Constructs a template at runtime using the provided location and passes the
template's content to the provided rendering callback.
|
public void provideTemplate(String url, TemplateRenderingCallback renderingCallback)
TemplateProvider
provideTemplate
in interface TemplateProvider
url
- The location of the template (i.e. a URL or path to a file), must
not be null.renderingCallback
- The callback that will cause the template to get rendered, must
not be null.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.