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
WebTemplateArchitectimplementation.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WebTemplateaddTemplate(boolean isSecure, java.lang.String applicationPath, PropertyList properties)Adds theWebTemplate.protected PropertyListcreatePropertyList()Creates aPropertyList.static WebTemplateLoaderemployWebTemplateLoader(OfficeFloorCompiler compiler)Employs theWebTemplateLoader.static WebTemplateArchitectemployWebTemplater(WebArchitect webArchitect, OfficeArchitect officeArchitect, OfficeSourceContext officeSourceContext)Employs theWebTemplateArchitect.protected SourceIssuesgetSourceIssues()Obtains theSourceIssues.voidinformWebArchitect()Informs theWebArchitectof the templates.protected booleanisPathParameters(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:AbstractWebTemplateFactoryCreates aPropertyList.- Specified by:
createPropertyListin classAbstractWebTemplateFactory- Returns:
- New
PropertyList.
-
getSourceIssues
protected SourceIssues getSourceIssues()
Description copied from class:AbstractWebTemplateFactoryObtains theSourceIssues.- Specified by:
getSourceIssuesin classAbstractWebTemplateFactory- Returns:
SourceIssues.
-
isPathParameters
protected boolean isPathParameters(java.lang.String applicationPath)
Description copied from class:AbstractWebTemplateFactoryIndicates if path parameters.- Specified by:
isPathParametersin classAbstractWebTemplateFactory- Parameters:
applicationPath- Application path.- Returns:
trueif path parameters.
-
addTemplate
protected WebTemplate addTemplate(boolean isSecure, java.lang.String applicationPath, PropertyList properties)
Description copied from class:AbstractWebTemplateFactoryAdds theWebTemplate.- Specified by:
addTemplatein classAbstractWebTemplateFactory- Parameters:
isSecure- Indicates if requires secureServerHttpConnectionto render theWebTemplate.applicationPath- Application path to theWebTemplate. May contain path parameters.properties- InitialPropertiesfor theWebTemplatethat should be further configured by the returnedWebTemplateimplementation.- Returns:
WebTemplate.
-
informWebArchitect
public void informWebArchitect()
Description copied from interface:WebTemplateArchitectInforms theWebArchitectof the templates. This is to be invoked once all templates are configured.- Specified by:
informWebArchitectin interfaceWebTemplateArchitect
-
-