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
,ActivityContextAware
,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 -
Method Summary
Modifier and TypeMethodDescriptionfreemarker.template.Configuration
Return an instance (possibly shared or independent) of the object managed by this factory.void
Initialize FreeMarkerConfigurationFactory's Configuration if not overridden by a preconfigured FreeMarker Configuration.Methods inherited from class com.aspectran.freemarker.FreeMarkerConfigurationFactory
createConfiguration, getAggregateTemplateLoader, getTemplateLoaderForPath, newConfiguration, setActivityContext, setConfigLocation, setDefaultEncoding, setFreemarkerSettings, setFreemarkerVariables, setTemplateLoader, setTemplateLoader, setTemplateLoader, setTemplateLoaderPath, setTemplateLoaderPath, setTemplateLoaderPath, setTrimDirectives, setTrimDirectives
-
Constructor Details
-
FreeMarkerConfigurationFactoryBean
public FreeMarkerConfigurationFactoryBean()
-
-
Method Details
-
initialize
Initialize FreeMarkerConfigurationFactory's Configuration if not overridden by a preconfigured FreeMarker Configuration.- Specified by:
initialize
in interfaceInitializableBean
- Throws:
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)
-