public final class StandardSerializers extends Object
Utility class for the easy obtention of objects relevant to the serialization of output values in template modes like JavaScript and/or CSS.
Modifier and Type | Field and Description |
---|---|
static String |
STANDARD_CSS_SERIALIZER_ATTRIBUTE_NAME
Name used for registering the Standard CSS Serializer object as an
execution attribute at the Standard Dialects.
|
static String |
STANDARD_JAVASCRIPT_SERIALIZER_ATTRIBUTE_NAME
Name used for registering the Standard JavaScript Serializer object as an
execution attribute at the Standard Dialects.
|
Modifier and Type | Method and Description |
---|---|
static IStandardCSSSerializer |
getCSSSerializer(IEngineConfiguration configuration)
Obtain the CSS serializer (implementation of
IStandardCSSSerializer ) registered by
the Standard Dialect that is being currently used. |
static IStandardJavaScriptSerializer |
getJavaScriptSerializer(IEngineConfiguration configuration)
Obtain the JavaScript serializer (implementation of
IStandardJavaScriptSerializer ) registered by
the Standard Dialect that is being currently used. |
public static final String STANDARD_JAVASCRIPT_SERIALIZER_ATTRIBUTE_NAME
public static final String STANDARD_CSS_SERIALIZER_ATTRIBUTE_NAME
public static IStandardJavaScriptSerializer getJavaScriptSerializer(IEngineConfiguration configuration)
Obtain the JavaScript serializer (implementation of IStandardJavaScriptSerializer
) registered by
the Standard Dialect that is being currently used.
configuration
- the configuration object for the current template execution environment.public static IStandardCSSSerializer getCSSSerializer(IEngineConfiguration configuration)
Obtain the CSS serializer (implementation of IStandardCSSSerializer
) registered by
the Standard Dialect that is being currently used.
configuration
- the configuration object for the current template execution environment.Copyright © 2016 The THYMELEAF team. All rights reserved.