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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRegister high-traffic KRAD template adaptors.static freemarker.template.ConfigurationGet the FreeMarker configuration initialized for the current KRAD application.static freemarker.template.ObjectWrapperGet the object wrapper for use in the component rendering phase.static javax.servlet.ServletContextGet the servlet context initialized for the current KRAD application.static freemarker.ext.servlet.ServletContextHashModelGet the servlet context hash model for use in the component rendering phase.static freemarker.ext.jsp.TaglibFactoryGet the tablib factory for use in the component rendering phase.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetServletContext(javax.servlet.ServletContext servletContext)
-
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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext) - Specified by:
setServletContextin interfaceorg.springframework.web.context.ServletContextAware
-
afterPropertiesSet
Register high-traffic KRAD template adaptors.- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-