Fix typo in setMessageExpessionHandler (#3803)

This commit is contained in:
Nicolai Ehemann 2016-04-12 18:08:52 +02:00 committed by Rob Winch
parent b90242f2fa
commit c57dba6b77
1 changed files with 6 additions and 1 deletions

View File

@ -206,8 +206,13 @@ public abstract class AbstractSecurityWebSocketMessageBrokerConfigurer extends
this.context = context;
}
@Autowired(required = false)
@Deprecated
public void setMessageExpessionHandler(List<SecurityExpressionHandler<Message<Object>>> expressionHandlers) {
setMessageExpressionHandler(expressionHandlers);
}
@Autowired(required = false)
public void setMessageExpressionHandler(List<SecurityExpressionHandler<Message<Object>>> expressionHandlers) {
if(expressionHandlers.size() == 1) {
this.expressionHandler = expressionHandlers.get(0);
}