org.thymeleaf.context
Class WarningContextVariableRestriction

Object
  extended by org.thymeleaf.context.WarningContextVariableRestriction
All Implemented Interfaces:
IContextVariableRestriction

public class WarningContextVariableRestriction
extends Object
implements IContextVariableRestriction

Allows access to a specific variable in the map, but outputs a warning through the log.

Since:
2.0.16

Constructor Summary
WarningContextVariableRestriction(String targetVariableName)
           
WarningContextVariableRestriction(String targetVariableName, String message)
           
 
Method Summary
 void checkAccess(VariablesMap<?,?> variablesMap, String variableName)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarningContextVariableRestriction

public WarningContextVariableRestriction(String targetVariableName)

WarningContextVariableRestriction

public WarningContextVariableRestriction(String targetVariableName,
                                         String message)
Method Detail

checkAccess

public void checkAccess(VariablesMap<?,?> variablesMap,
                        String variableName)
Specified by:
checkAccess in interface IContextVariableRestriction


Copyright © 2013 The THYMELEAF team. All Rights Reserved.