Class JMustacheCompilerFactoryBean
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<com.samskivert.mustache.Mustache.Compiler>
-
- com.github.mjeanroy.springmvc.view.mustache.configuration.jmustache.JMustacheCompilerFactoryBean
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.FactoryBean<com.samskivert.mustache.Mustache.Compiler>
,org.springframework.beans.factory.InitializingBean
public class JMustacheCompilerFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<com.samskivert.mustache.Mustache.Compiler> implements org.springframework.beans.factory.FactoryBean<com.samskivert.mustache.Mustache.Compiler>
Factory used to create instance ofMustache.Compiler
. Bean instance is thread safe.
-
-
Constructor Summary
Constructors Constructor Description JMustacheCompilerFactoryBean()
Create factory with default settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.samskivert.mustache.Mustache.Compiler
createInstance()
Class<?>
getObjectType()
void
setCustomizers(Collection<JMustacheCustomizer> customizers)
Setcustomizers
void
setDefaultValue(String defaultValue)
SetdefaultValue
void
setEmptyStringIsFalse(boolean emptyStringIsFalse)
void
setEscapeHTML(boolean escapeHTML)
SetescapeHTML
void
setNullValue(String nullValue)
SetnullValue
void
setStandardsMode(boolean standardsMode)
SetstandardsMode
void
setStrictSections(boolean strictSections)
SetstrictSections
void
setZeroIsFalse(boolean zeroIsFalse)
SetzeroIsFalse
-
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
-
-
-
Method Detail
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<com.samskivert.mustache.Mustache.Compiler>
- Specified by:
getObjectType
in classorg.springframework.beans.factory.config.AbstractFactoryBean<com.samskivert.mustache.Mustache.Compiler>
-
createInstance
protected com.samskivert.mustache.Mustache.Compiler createInstance()
- Specified by:
createInstance
in classorg.springframework.beans.factory.config.AbstractFactoryBean<com.samskivert.mustache.Mustache.Compiler>
-
setNullValue
public void setNullValue(String nullValue)
SetnullValue
- Parameters:
nullValue
-nullValue
-
setDefaultValue
public void setDefaultValue(String defaultValue)
SetdefaultValue
- Parameters:
defaultValue
-defaultValue
-
setEmptyStringIsFalse
public void setEmptyStringIsFalse(boolean emptyStringIsFalse)
- Parameters:
emptyStringIsFalse
-emptyStringIsFalse
-
setZeroIsFalse
public void setZeroIsFalse(boolean zeroIsFalse)
SetzeroIsFalse
- Parameters:
zeroIsFalse
-zeroIsFalse
-
setEscapeHTML
public void setEscapeHTML(boolean escapeHTML)
SetescapeHTML
- Parameters:
escapeHTML
-escapeHTML
-
setStrictSections
public void setStrictSections(boolean strictSections)
SetstrictSections
- Parameters:
strictSections
-strictSections
-
setStandardsMode
public void setStandardsMode(boolean standardsMode)
SetstandardsMode
- Parameters:
standardsMode
-standardsMode
-
setCustomizers
public void setCustomizers(Collection<JMustacheCustomizer> customizers)
Setcustomizers
- Parameters:
customizers
-customizers
-
-