@Override protected void setConfigurationOfChildren(Configuration cfg) { for (TemplateConfigurationFactory templateConfigurationFactory : templateConfigurationFactories) { templateConfigurationFactory.setConfiguration(cfg); } }
@Override protected void setConfigurationOfChildren(Configuration cfg) { for (TemplateConfigurationFactory templateConfigurationFactory : templateConfigurationFactories) { templateConfigurationFactory.setConfiguration(cfg); } }
@Override protected void setConfigurationOfChildren(Configuration cfg) { if (templateConfiguration != null) { templateConfiguration.setParentConfiguration(cfg); } if (templateConfigurationFactory != null) { templateConfigurationFactory.setConfiguration(cfg); } }
/** * Sets a {@link TemplateConfigurationFactory} that will configure individual templates where their settings differ * from those coming from the common {@link Configuration} object. A typical use case for that is specifying the * {@link TemplateConfiguration#setOutputFormat(OutputFormat) outputFormat} for templates based on their file * extension or parent directory. * * <p> * Note that the settings suggested by standard file extensions are stronger than that you set here. See * {@link #setRecognizeStandardFileExtensions(boolean)} for more information about standard file extensions. * * <p>See "Template configurations" in the FreeMarker Manual for examples. * * @since 2.3.24 */ public void setTemplateConfigurations(TemplateConfigurationFactory templateConfigurations) { if (cache.getTemplateConfigurations() != templateConfigurations) { if (templateConfigurations != null) { templateConfigurations.setConfiguration(this); } recreateTemplateCacheWith(cache.getTemplateLoader(), cache.getCacheStorage(), cache.getTemplateLookupStrategy(), cache.getTemplateNameFormat(), templateConfigurations); } }
@Override protected void setConfigurationOfChildren(Configuration cfg) { for (TemplateConfigurationFactory templateConfigurationFactory : templateConfigurationFactories) { templateConfigurationFactory.setConfiguration(cfg); } }
@Override protected void setConfigurationOfChildren(Configuration cfg) { for (TemplateConfigurationFactory templateConfigurationFactory : templateConfigurationFactories) { templateConfigurationFactory.setConfiguration(cfg); } }
@Override protected void setConfigurationOfChildren(Configuration cfg) { for (TemplateConfigurationFactory templateConfigurationFactory : templateConfigurationFactories) { templateConfigurationFactory.setConfiguration(cfg); } }
@Override protected void setConfigurationOfChildren(Configuration cfg) { for (TemplateConfigurationFactory templateConfigurationFactory : templateConfigurationFactories) { templateConfigurationFactory.setConfiguration(cfg); } }
@Override protected void setConfigurationOfChildren(Configuration cfg) { if (templateConfiguration != null) { templateConfiguration.setParentConfiguration(cfg); } if (templateConfigurationFactory != null) { templateConfigurationFactory.setConfiguration(cfg); } }
@Override protected void setConfigurationOfChildren(Configuration cfg) { if (templateConfiguration != null) { templateConfiguration.setParentConfiguration(cfg); } if (templateConfigurationFactory != null) { templateConfigurationFactory.setConfiguration(cfg); } }
/** * Sets a {@link TemplateConfigurationFactory} that will configure individual templates where their settings differ * from those coming from the common {@link Configuration} object. A typical use case for that is specifying the * {@link TemplateConfiguration#setOutputFormat(OutputFormat) outputFormat} for templates based on their file * extension or parent directory. * * <p> * Note that the settings suggested by standard file extensions are stronger than that you set here. See * {@link #setRecognizeStandardFileExtensions(boolean)} for more information about standard file extensions. * * <p>See "Template configurations" in the FreeMarker Manual for examples. * * @since 2.3.24 */ public void setTemplateConfigurations(TemplateConfigurationFactory templateConfigurations) { if (cache.getTemplateConfigurations() != templateConfigurations) { if (templateConfigurations != null) { templateConfigurations.setConfiguration(this); } recreateTemplateCacheWith(cache.getTemplateLoader(), cache.getCacheStorage(), cache.getTemplateLookupStrategy(), cache.getTemplateNameFormat(), templateConfigurations); } }
/** * Sets a {@link TemplateConfigurationFactory} that will configure individual templates where their settings differ * from those coming from the common {@link Configuration} object. A typical use case for that is specifying the * {@link TemplateConfiguration#setOutputFormat(OutputFormat) outputFormat} for templates based on their file * extension or parent directory. * * <p> * Note that the settings suggested by standard file extensions are stronger than that you set here. See * {@link #setRecognizeStandardFileExtensions(boolean)} for more information about standard file extensions. * * <p>See "Template configurations" in the FreeMarker Manual for examples. * * @since 2.3.24 */ public void setTemplateConfigurations(TemplateConfigurationFactory templateConfigurations) { if (cache.getTemplateConfigurations() != templateConfigurations) { if (templateConfigurations != null) { templateConfigurations.setConfiguration(this); } recreateTemplateCacheWith(cache.getTemplateLoader(), cache.getCacheStorage(), cache.getTemplateLookupStrategy(), cache.getTemplateNameFormat(), templateConfigurations); } }