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.

  • Constructor Details

    • FreeMarkerConfigurationFactoryBean

      public FreeMarkerConfigurationFactoryBean()
  • Method Details

    • initialize

      public void initialize() throws Exception
      Initialize FreeMarkerConfigurationFactory's Configuration if not overridden by a preconfigured FreeMarker Configuration.
      Specified by:
      initialize in interface InitializableBean
      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 interface FactoryBean<freemarker.template.Configuration>
      Returns:
      an instance of the bean (can be null)