Remove Deprecated EvaluationContextExtensionSupport Usage

EvaluationContextExtensionSupport is deprecated. Instead classes should
implement EvaluationContextExtension directly.

Fixes: gh-5886
This commit is contained in:
Rob Winch 2018-09-19 16:52:06 -05:00
parent b4cad2c8b9
commit 508f0bc870
1 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
*/ */
package org.springframework.security.data.repository.query; package org.springframework.security.data.repository.query;
import org.springframework.data.repository.query.spi.EvaluationContextExtensionSupport; import org.springframework.data.repository.query.spi.EvaluationContextExtension;
import org.springframework.security.access.expression.SecurityExpressionRoot; import org.springframework.security.access.expression.SecurityExpressionRoot;
import org.springframework.security.core.Authentication; import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContext;
@ -79,7 +79,7 @@ import org.springframework.security.core.context.SecurityContextHolder;
* @author Rob Winch * @author Rob Winch
*/ */
public class SecurityEvaluationContextExtension public class SecurityEvaluationContextExtension
extends EvaluationContextExtensionSupport { implements EvaluationContextExtension {
private Authentication authentication; private Authentication authentication;
/** /**
@ -117,4 +117,4 @@ public class SecurityEvaluationContextExtension
SecurityContext context = SecurityContextHolder.getContext(); SecurityContext context = SecurityContextHolder.getContext();
return context.getAuthentication(); return context.getAuthentication();
} }
} }