Class WebTemplateArchitectEmployer
- java.lang.Object
-
- net.officefloor.web.template.build.AbstractWebTemplateFactory
-
- net.officefloor.web.template.build.WebTemplateArchitectEmployer
-
- All Implemented Interfaces:
WebTemplateArchitect
,WebTemplateFactory
public class WebTemplateArchitectEmployer extends AbstractWebTemplateFactory implements WebTemplateArchitect
WebTemplateArchitect
implementation.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WebTemplate
addTemplate(boolean isSecure, java.lang.String applicationPath, PropertyList properties)
Adds theWebTemplate
.protected PropertyList
createPropertyList()
Creates aPropertyList
.static WebTemplateLoader
employWebTemplateLoader(OfficeFloorCompiler compiler)
Employs theWebTemplateLoader
.static WebTemplateArchitect
employWebTemplater(WebArchitect webArchitect, OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext)
Employs theWebTemplateArchitect
.protected SourceIssues
getSourceIssues()
Obtains theSourceIssues
.void
informWebArchitect()
Informs theWebArchitect
of the templates.protected boolean
isPathParameters(java.lang.String applicationPath)
Indicates if path parameters.-
Methods inherited from class net.officefloor.web.template.build.AbstractWebTemplateFactory
addTemplate, addTemplate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.web.template.build.WebTemplateFactory
addTemplate, addTemplate
-
-
-
-
Method Detail
-
employWebTemplater
public static WebTemplateArchitect employWebTemplater(WebArchitect webArchitect, OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext)
Employs theWebTemplateArchitect
.- Parameters:
webArchitect
-WebArchitect
.officeArchitect
-OfficeArchitect
.officeSourceContext
-OfficeSourceContext
.- Returns:
WebTemplateArchitect
.
-
employWebTemplateLoader
public static WebTemplateLoader employWebTemplateLoader(OfficeFloorCompiler compiler) throws java.lang.Exception
Employs theWebTemplateLoader
.- Parameters:
compiler
-OfficeFloorCompiler
.- Returns:
WebTemplateLoader
.- Throws:
java.lang.Exception
- If fails to load theWebTemplateLoader
.
-
createPropertyList
protected PropertyList createPropertyList()
Description copied from class:AbstractWebTemplateFactory
Creates aPropertyList
.- Specified by:
createPropertyList
in classAbstractWebTemplateFactory
- Returns:
- New
PropertyList
.
-
getSourceIssues
protected SourceIssues getSourceIssues()
Description copied from class:AbstractWebTemplateFactory
Obtains theSourceIssues
.- Specified by:
getSourceIssues
in classAbstractWebTemplateFactory
- Returns:
SourceIssues
.
-
isPathParameters
protected boolean isPathParameters(java.lang.String applicationPath)
Description copied from class:AbstractWebTemplateFactory
Indicates if path parameters.- Specified by:
isPathParameters
in classAbstractWebTemplateFactory
- Parameters:
applicationPath
- Application path.- Returns:
true
if path parameters.
-
addTemplate
protected WebTemplate addTemplate(boolean isSecure, java.lang.String applicationPath, PropertyList properties)
Description copied from class:AbstractWebTemplateFactory
Adds theWebTemplate
.- Specified by:
addTemplate
in classAbstractWebTemplateFactory
- Parameters:
isSecure
- Indicates if requires secureServerHttpConnection
to render theWebTemplate
.applicationPath
- Application path to theWebTemplate
. May contain path parameters.properties
- InitialProperties
for theWebTemplate
that should be further configured by the returnedWebTemplate
implementation.- Returns:
WebTemplate
.
-
informWebArchitect
public void informWebArchitect()
Description copied from interface:WebTemplateArchitect
Informs theWebArchitect
of the templates. This is to be invoked once all templates are configured.- Specified by:
informWebArchitect
in interfaceWebTemplateArchitect
-
-