Skip to content

Commit

Permalink
Deprecate pure repository SpEL support components for removal.
Browse files Browse the repository at this point in the history
Closes #3207
  • Loading branch information
mp911de committed Nov 18, 2024
1 parent 499abbe commit 38b9a0a
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void setEvaluationContextProvider(EvaluationContextProvider evaluationCon
* @param evaluationContextProvider must not be {@literal null}.
* @deprecated since 3.4, use {@link #setEvaluationContextProvider(EvaluationContextProvider)} instead.
*/
@Deprecated(since = "3.4")
@Deprecated(since = "3.4", forRemoval = true)
public void setEvaluationContextProvider(QueryMethodEvaluationContextProvider evaluationContextProvider) {
setEvaluationContextProvider(evaluationContextProvider.getEvaluationContextProvider());
}
Expand Down Expand Up @@ -258,7 +258,7 @@ protected Optional<EvaluationContextProvider> createDefaultEvaluationContextProv
* @since 2.4
* @deprecated since 3.4, use {@link #createDefaultEvaluationContextProvider(ListableBeanFactory)} instead.
*/
@Deprecated(since = "3.4")
@Deprecated(since = "3.4", forRemoval = true)
protected Optional<QueryMethodEvaluationContextProvider> createDefaultQueryMethodEvaluationContextProvider(
ListableBeanFactory beanFactory) {
return Optional.of(new ExtensionAwareQueryMethodEvaluationContextProvider(beanFactory));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
* @author John Blum
* @author Johannes Englmeier
*/
@SuppressWarnings("removal")
public abstract class RepositoryFactorySupport
implements BeanClassLoaderAware, BeanFactoryAware, EnvironmentAware, EnvironmentCapable {

Expand Down Expand Up @@ -216,7 +217,7 @@ public Environment getEnvironment() {
* {@link QueryMethodEvaluationContextProvider#DEFAULT}.
* @deprecated since 3.4, use {@link #setEvaluationContextProvider(EvaluationContextProvider)} instead.
*/
@Deprecated(since = "3.4")
@Deprecated(since = "3.4", forRemoval = true)
public void setEvaluationContextProvider(@Nullable QueryMethodEvaluationContextProvider evaluationContextProvider) {
setEvaluationContextProvider(evaluationContextProvider == null ? EvaluationContextProvider.DEFAULT
: evaluationContextProvider.getEvaluationContextProvider());
Expand Down Expand Up @@ -586,7 +587,7 @@ protected ProjectionFactory getProjectionFactory() {
* @deprecated since 3.4, use {@link #getQueryLookupStrategy(Key, ValueExpressionDelegate)} instead to support
* {@link org.springframework.data.expression.ValueExpression} in query methods.
*/
@Deprecated(since = "3.4")
@Deprecated(since = "3.4", forRemoval = true)
protected Optional<QueryLookupStrategy> getQueryLookupStrategy(@Nullable Key key,
QueryMethodEvaluationContextProvider evaluationContextProvider) {
return Optional.empty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
* @since 1.9
* @deprecated since 3.4 in favor of {@link QueryMethodValueEvaluationContextAccessor}.
*/
@Deprecated(since = "3.4")
@SuppressWarnings("removal")
@Deprecated(since = "3.4", forRemoval = true)
public class ExtensionAwareQueryMethodEvaluationContextProvider implements QueryMethodEvaluationContextProvider {

private final QueryMethodValueEvaluationContextAccessor delegate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
* @since 1.9
* @deprecated since 3.4 in favor of {@link QueryMethodValueEvaluationContextAccessor}.
*/
@Deprecated(since = "3.4")
@Deprecated(since = "3.4", forRemoval = true)
@SuppressWarnings("removal")
public interface QueryMethodEvaluationContextProvider {

QueryMethodEvaluationContextProvider DEFAULT = new ExtensionAwareQueryMethodEvaluationContextProvider(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
* @since 2.4
* @deprecated since 3.4 in favor of {@link QueryMethodValueEvaluationContextAccessor}.
*/
@Deprecated(since = "3.4")
@SuppressWarnings("removal")
@Deprecated(since = "3.4", forRemoval = true)
public class ReactiveExtensionAwareQueryMethodEvaluationContextProvider
extends ExtensionAwareQueryMethodEvaluationContextProvider
implements ReactiveQueryMethodEvaluationContextProvider {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @since 2.4
* @deprecated since 3.4 in favor of {@link QueryMethodValueEvaluationContextAccessor}.
*/
@Deprecated(since = "3.4")
@Deprecated(since = "3.4", forRemoval = true)
public interface ReactiveQueryMethodEvaluationContextProvider extends QueryMethodEvaluationContextProvider {

ReactiveQueryMethodEvaluationContextProvider DEFAULT = new ReactiveExtensionAwareQueryMethodEvaluationContextProvider(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
* @see SpelQueryContext#parse(String)
* @deprecated since 3.3, use {@link ValueExpressionQueryRewriter} instead.
*/
@Deprecated(since = "3.3")
@SuppressWarnings("removal")
@Deprecated(since = "3.3", forRemoval = true)
public class SpelEvaluator {

private static final SpelExpressionParser PARSER = new SpelExpressionParser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
* @since 2.1
* @deprecated since 3.3, use {@link ValueExpressionQueryRewriter} instead.
*/
@Deprecated(since = "3.3")
@SuppressWarnings("removal")
@Deprecated(since = "3.3", forRemoval = true)
public class SpelQueryContext {

private static final String SPEL_PATTERN_STRING = "([:?])#\\{([^}]+)}";
Expand Down

0 comments on commit 38b9a0a

Please sign in to comment.