org.thymeleaf
Class Configuration

Object
  extended by org.thymeleaf.Configuration

public final class Configuration
extends Object

Since:
1.0
Author:
Daniel Fernández

Field Summary
static int DEFAULT_PARSED_TEMPLATE_CACHE_SIZE
           
static IDialect STANDARD_THYMELEAF_DIALECT
           
 
Method Summary
 Set<String> getAllPrefixes()
           
 Set<IAttrProcessor> getAttrProcessors()
          Deprecated. If you need to obtain the attr processors for a specific dialect, use getAttrProcessors(Class) This method will be removed in 1.0.0-beta5.
 Set<IAttrProcessor> getAttrProcessors(Class<? extends IDialect> dialectClass)
           
 IDialect getDialect()
          Deprecated. Configuration can now be multi-dialect, so use getDialects() instead. This method will be removed in 1.0.0-beta5.
 Map<String,IDialect> getDialects()
           
 Set<IDocTypeResolutionEntry> getDocTypeResolutionEntries()
           
 IDocTypeTranslation getDocTypeTranslationBySource(String publicID, String systemID)
           
 Set<IDocTypeTranslation> getDocTypeTranslations()
           
 Set<IMessageResolver> getMessageResolvers()
           
 int getParsedTemplateCacheSize()
           
 Set<String> getProcessedAttrNames()
           
 Set<String> getProcessedTagNames()
           
 Set<ITagProcessor> getTagProcessors()
          Deprecated. If you need to obtain the tag processors for a specific dialect, use getTagProcessors(Class) This method will be removed in 1.0.0-beta5.
 Set<ITagProcessor> getTagProcessors(Class<? extends IDialect> dialectClass)
           
 Set<ITemplateResolver> getTemplateResolvers()
           
<T extends IValueProcessor>
T
getValueProcessorByClass(Class<T> valueProcessorClass)
          Deprecated. Use instead the versions of this method that accept an ITagProcessor, IAttrProcessor or IValueProcessor as its first argument. This is required for allowing multi-project setups. This method will be removed in 1.0.0-beta5.
<T extends IValueProcessor>
T
getValueProcessorByClass(IAttrProcessor attrProcessor, Class<T> valueProcessorClass)
           
<T extends IValueProcessor>
T
getValueProcessorByClass(ITagProcessor tagProcessor, Class<T> valueProcessorClass)
           
<T extends IValueProcessor>
T
getValueProcessorByClass(IValueProcessor valueProcessor, Class<T> valueProcessorClass)
           
 Set<IValueProcessor> getValueProcessors()
          Deprecated. If you need to obtain the value processors for a specific dialect, use getValueProcessors(Class) This method will be removed in 1.0.0-beta5.
 Set<IValueProcessor> getValueProcessors(Class<? extends IDialect> dialectClass)
           
 String getXmlNsAttrName(String prefix)
           
 void initialize()
           
 boolean isLenient(String prefix)
           
 boolean isPrefixManaged(String prefix)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PARSED_TEMPLATE_CACHE_SIZE

public static final int DEFAULT_PARSED_TEMPLATE_CACHE_SIZE
See Also:
Constant Field Values

STANDARD_THYMELEAF_DIALECT

public static final IDialect STANDARD_THYMELEAF_DIALECT
Method Detail

initialize

public void initialize()

getDialect

@Deprecated
public IDialect getDialect()
Deprecated. Configuration can now be multi-dialect, so use getDialects() instead. This method will be removed in 1.0.0-beta5.

Returns:
the first of the configured dialects.

getDialects

public Map<String,IDialect> getDialects()

getTemplateResolvers

public Set<ITemplateResolver> getTemplateResolvers()

getMessageResolvers

public Set<IMessageResolver> getMessageResolvers()

getParsedTemplateCacheSize

public int getParsedTemplateCacheSize()

getDocTypeTranslations

public final Set<IDocTypeTranslation> getDocTypeTranslations()

getDocTypeTranslationBySource

public final IDocTypeTranslation getDocTypeTranslationBySource(String publicID,
                                                               String systemID)

getDocTypeResolutionEntries

public final Set<IDocTypeResolutionEntry> getDocTypeResolutionEntries()

getAttrProcessors

@Deprecated
public Set<IAttrProcessor> getAttrProcessors()
Deprecated. If you need to obtain the attr processors for a specific dialect, use getAttrProcessors(Class) This method will be removed in 1.0.0-beta5.


getAttrProcessors

public Set<IAttrProcessor> getAttrProcessors(Class<? extends IDialect> dialectClass)

getProcessedAttrNames

public Set<String> getProcessedAttrNames()

getTagProcessors

@Deprecated
public Set<ITagProcessor> getTagProcessors()
Deprecated. If you need to obtain the tag processors for a specific dialect, use getTagProcessors(Class) This method will be removed in 1.0.0-beta5.


getTagProcessors

public Set<ITagProcessor> getTagProcessors(Class<? extends IDialect> dialectClass)

getProcessedTagNames

public Set<String> getProcessedTagNames()

getValueProcessors

@Deprecated
public Set<IValueProcessor> getValueProcessors()
Deprecated. If you need to obtain the value processors for a specific dialect, use getValueProcessors(Class) This method will be removed in 1.0.0-beta5.


getValueProcessors

public Set<IValueProcessor> getValueProcessors(Class<? extends IDialect> dialectClass)

getValueProcessorByClass

@Deprecated
public final <T extends IValueProcessor> T getValueProcessorByClass(Class<T> valueProcessorClass)
Deprecated. Use instead the versions of this method that accept an ITagProcessor, IAttrProcessor or IValueProcessor as its first argument. This is required for allowing multi-project setups. This method will be removed in 1.0.0-beta5.


getValueProcessorByClass

public final <T extends IValueProcessor> T getValueProcessorByClass(ITagProcessor tagProcessor,
                                                                    Class<T> valueProcessorClass)

getValueProcessorByClass

public final <T extends IValueProcessor> T getValueProcessorByClass(IAttrProcessor attrProcessor,
                                                                    Class<T> valueProcessorClass)

getValueProcessorByClass

public final <T extends IValueProcessor> T getValueProcessorByClass(IValueProcessor valueProcessor,
                                                                    Class<T> valueProcessorClass)

getAllPrefixes

public Set<String> getAllPrefixes()

isLenient

public boolean isLenient(String prefix)

isPrefixManaged

public boolean isPrefixManaged(String prefix)

getXmlNsAttrName

public final String getXmlNsAttrName(String prefix)


Copyright © 2011 The THYMELEAF team. All Rights Reserved.