Package com.aspectran.freemarker
Class FreeMarkerConfigurationFactoryBean
- java.lang.Object
-
- com.aspectran.freemarker.FreeMarkerConfigurationFactory
-
- com.aspectran.freemarker.FreeMarkerConfigurationFactoryBean
-
- All Implemented Interfaces:
FactoryBean<freemarker.template.Configuration>
,InitializableBean
,ApplicationAdapterAware
,Aware
public class FreeMarkerConfigurationFactoryBean extends FreeMarkerConfigurationFactory implements InitializableBean, FactoryBean<freemarker.template.Configuration>
JavaBean to configure FreeMarker.Note: Aspectran's FreeMarker support requires FreeMarker 2.3 or higher.
Created: 2016. 1. 9.
-
-
Field Summary
-
Fields inherited from interface com.aspectran.core.component.bean.ablility.FactoryBean
FACTORY_METHOD_NAME
-
-
Constructor Summary
Constructors Constructor Description FreeMarkerConfigurationFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description freemarker.template.Configuration
getObject()
Return an instance (possibly shared or independent) of the object managed by this factory.void
initialize()
Initialize FreeMarkerConfigurationFactory's Configuration if not overridden by a preconfigured FreeMarker Configuration.-
Methods inherited from class com.aspectran.freemarker.FreeMarkerConfigurationFactory
createConfiguration, getAggregateTemplateLoader, getTemplateLoaderForPath, newConfiguration, setApplicationAdapter, setConfigLocation, setDefaultEncoding, setFreemarkerSettings, setFreemarkerVariables, setTemplateLoader, setTemplateLoader, setTemplateLoader, setTemplateLoaderPath, setTemplateLoaderPath, setTemplateLoaderPath, setTrimDirectives, setTrimDirectives
-
-
-
-
Method Detail
-
initialize
public void initialize() throws java.lang.Exception
Initialize FreeMarkerConfigurationFactory's Configuration if not overridden by a preconfigured FreeMarker Configuration.- Specified by:
initialize
in interfaceInitializableBean
- Throws:
java.lang.Exception
- Exceptions occurring when you configure FreeMarker
-
getObject
public freemarker.template.Configuration getObject()
Description copied from interface:FactoryBean
Return an instance (possibly shared or independent) of the object managed by this factory. As with a BeanFactory, this allows support for both the Singleton and Prototype design pattern.- Specified by:
getObject
in interfaceFactoryBean<freemarker.template.Configuration>
- Returns:
- an instance of the bean (can be null)
-
-