Class SpELStringTemplateCompiler
java.lang.Object
org.craftercms.core.util.template.impl.spel.SpELStringTemplateCompiler
- All Implemented Interfaces:
TemplateCompiler<IdentifiableStringTemplateSource>,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.InitializingBean
public class SpELStringTemplateCompiler
extends Object
implements TemplateCompiler<IdentifiableStringTemplateSource>, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
Class description goes HERE
- Author:
- Alfonso Vásquez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompile(IdentifiableStringTemplateSource templateSource) voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetEvalContext(org.springframework.expression.EvaluationContext evalContext) voidsetParserContext(org.springframework.expression.ParserContext parserContext)
-
Constructor Details
-
SpELStringTemplateCompiler
public SpELStringTemplateCompiler()
-
-
Method Details
-
setParserContext
public void setParserContext(org.springframework.expression.ParserContext parserContext) -
setEvalContext
public void setEvalContext(org.springframework.expression.EvaluationContext evalContext) -
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
compile
public CompiledTemplate compile(IdentifiableStringTemplateSource templateSource) throws TemplateException - Specified by:
compilein interfaceTemplateCompiler<IdentifiableStringTemplateSource>- Throws:
TemplateException
-