Class FreeMarkerInlineRenderBootstrap

java.lang.Object
org.kuali.rice.krad.uif.freemarker.FreeMarkerInlineRenderBootstrap
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

public class FreeMarkerInlineRenderBootstrap extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware
Register inline template processing adaptors for high-traffic KRAD templates.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • FreeMarkerInlineRenderBootstrap

      public FreeMarkerInlineRenderBootstrap()
  • Method Details

    • getFreeMarkerConfig

      public static freemarker.template.Configuration getFreeMarkerConfig()
      Get the FreeMarker configuration initialized for the current KRAD application.
      Returns:
      The FreeMarker configuration initialized for the current KRAD application.
    • getServletContext

      public static javax.servlet.ServletContext getServletContext()
      Get the servlet context initialized for the current KRAD application.
      Returns:
      The servlet context initialized for the current KRAD application.
    • getTaglibFactory

      public static freemarker.ext.jsp.TaglibFactory getTaglibFactory()
      Get the tablib factory for use in the component rendering phase.
      Returns:
      The tablib factory for use in the component rendering phase.
    • getObjectWrapper

      public static freemarker.template.ObjectWrapper getObjectWrapper()
      Get the object wrapper for use in the component rendering phase.
      Returns:
      The object wrapper for use in the component rendering phase.
    • getServletContextHashModel

      public static freemarker.ext.servlet.ServletContextHashModel getServletContextHashModel()
      Get the servlet context hash model for use in the component rendering phase.
      Returns:
      The servlet context hash model for use in the component rendering phase.
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • setServletContext

      public void setServletContext(javax.servlet.ServletContext servletContext)
      Specified by:
      setServletContext in interface org.springframework.web.context.ServletContextAware
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Register high-traffic KRAD template adaptors.
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception