@Override public Object buildObject(IExpressionContext context, String expressionObjectName) { if (TEMPORAL_EVALUATION_VARIABLE_NAME.equals(expressionObjectName)) { return new Temporals(context.getLocale()); } return null; }
@Override public Object buildObject(IExpressionContext context, String expressionObjectName) { if (TEMPORAL_EVALUATION_VARIABLE_NAME.equals(expressionObjectName)) { return new Temporals(context.getLocale()); } return null; }
/** * Constructor, obtains the current theme and locale from the processing * context for code lookups later. * * @param context the processing context being used */ public Themes(final IExpressionContext context) { super(); this.locale = context.getLocale(); final IThymeleafRequestContext requestContext = SpringContextUtils.getRequestContext(context); this.theme = requestContext != null ? requestContext.getTheme() : null; }
/** * Constructor, obtains the current theme and locale from the processing * context for code lookups later. * * @param context the processing context being used */ public Themes(final IExpressionContext context) { super(); this.locale = context.getLocale(); final RequestContext requestContext = (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT); this.theme = requestContext != null ? requestContext.getTheme() : null; }
/** * Constructor, obtains the current theme and locale from the processing * context for code lookups later. * * @param context the processing context being used */ public Themes(final IExpressionContext context) { super(); this.locale = context.getLocale(); final RequestContext requestContext = (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT); this.theme = requestContext != null ? requestContext.getTheme() : null; }
/** * Constructor, obtains the current theme and locale from the processing * context for code lookups later. * * @param context the processing context being used */ public Themes(final IExpressionContext context) { super(); this.locale = context.getLocale(); final RequestContext requestContext = (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT); this.theme = requestContext != null ? requestContext.getTheme() : null; }
/** * Constructor, obtains the current theme and locale from the processing * context for code lookups later. * * @param context the processing context being used */ public Themes(final IExpressionContext context) { super(); this.locale = context.getLocale(); final RequestContext requestContext = (RequestContext) context.getVariable(SpringContextVariableNames.SPRING_REQUEST_CONTEXT); this.theme = requestContext != null ? requestContext.getTheme() : null; }