Class WebTemplateFunction
- java.lang.Object
-
- net.officefloor.frame.api.function.StaticManagedFunction<Indexed,None>
-
- net.officefloor.web.template.section.WebTemplateFunction
-
- All Implemented Interfaces:
ManagedFunction<Indexed,None>
,ManagedFunctionFactory<Indexed,None>
public class WebTemplateFunction extends StaticManagedFunction<Indexed,None>
ManagedFunction
to write theParsedTemplateSection
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description WebTemplateFunction(WebTemplateWriter[] contentWriters, boolean isBean, java.nio.charset.Charset charset)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(ManagedFunctionContext<Indexed,None> context)
Executes the function.-
Methods inherited from class net.officefloor.frame.api.function.StaticManagedFunction
createManagedFunction
-
-
-
-
Constructor Detail
-
WebTemplateFunction
public WebTemplateFunction(WebTemplateWriter[] contentWriters, boolean isBean, java.nio.charset.Charset charset)
Initiate.- Parameters:
contentWriters
-WebTemplateWriter
instances to write the content.isBean
- Flag indicating if a bean.charset
- DefaultCharset
for the template.
-
-
Method Detail
-
execute
public void execute(ManagedFunctionContext<Indexed,None> context) throws java.io.IOException
Description copied from interface:ManagedFunction
Executes the function.- Parameters:
context
-ManagedFunctionContext
for theManagedFunction
.- Throws:
java.io.IOException
-
-