use of org.webpieces.templating.api.ProdTemplateModule in project webpieces by deanhiller.
the class WebServerFactory method getModules.
private static Module getModules(WebServerConfig config, RouterConfig routerConfig, TemplateConfig templateConfig, Arguments args) {
// Special wiring needed between webserver and router due to order of start. See
// PortConfigLookupImpl javadoc for more info
PortConfigLookupImpl portLookup = new PortConfigLookupImpl();
boolean hasCoreModule = config.getCoreModule() != null;
Module m = Modules.combine(new WebServerModule(config, portLookup, hasCoreModule, args), new ProdRouterModule(routerConfig, portLookup), new ProdTemplateModule(templateConfig));
if (config.getCoreModule() != null)
m = Modules.combine(m, config.getCoreModule());
return m;
}
Aggregations