Move RuntimeHints predicate support to a dedicated package

This commit moves `RuntimeHintsPredicate` and its support classes that
form a cohesive concept in a dedicated `.predicate` package.

Closes gh-28799
This commit is contained in:
Stephane Nicoll
2022-07-12 16:10:03 +02:00
parent 40c8b7c59f
commit 54a3f66d1d
19 changed files with 67 additions and 20 deletions

View File

@@ -14,11 +14,14 @@
* limitations under the License.
*/
package org.springframework.aot.hint;
package org.springframework.aot.hint.predicate;
import java.util.Arrays;
import java.util.function.Predicate;
import org.springframework.aot.hint.ProxyHints;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.TypeReference;
import org.springframework.util.Assert;
/**

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.aot.hint;
package org.springframework.aot.hint.predicate;
import java.lang.reflect.Constructor;
import java.lang.reflect.Executable;
@@ -26,6 +26,14 @@ import java.util.List;
import java.util.Set;
import java.util.function.Predicate;
import org.springframework.aot.hint.ExecutableHint;
import org.springframework.aot.hint.ExecutableMode;
import org.springframework.aot.hint.FieldHint;
import org.springframework.aot.hint.MemberCategory;
import org.springframework.aot.hint.ReflectionHints;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.TypeHint;
import org.springframework.aot.hint.TypeReference;
import org.springframework.core.MethodIntrospector;
import org.springframework.lang.Nullable;
import org.springframework.util.Assert;

View File

@@ -14,13 +14,17 @@
* limitations under the License.
*/
package org.springframework.aot.hint;
package org.springframework.aot.hint.predicate;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Predicate;
import java.util.regex.Pattern;
import org.springframework.aot.hint.ResourceHints;
import org.springframework.aot.hint.ResourcePatternHint;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.TypeReference;
import org.springframework.util.Assert;
import org.springframework.util.ConcurrentLruCache;

View File

@@ -14,7 +14,14 @@
* limitations under the License.
*/
package org.springframework.aot.hint;
package org.springframework.aot.hint.predicate;
import org.springframework.aot.hint.ProxyHints;
import org.springframework.aot.hint.ReflectionHints;
import org.springframework.aot.hint.ResourceHints;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.RuntimeHintsRegistrar;
import org.springframework.aot.hint.SerializationHints;
/**
* Static generator of predicates that test whether the given {@link RuntimeHints}

View File

@@ -14,10 +14,13 @@
* limitations under the License.
*/
package org.springframework.aot.hint;
package org.springframework.aot.hint.predicate;
import java.util.function.Predicate;
import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.SerializationHints;
import org.springframework.aot.hint.TypeReference;
import org.springframework.util.Assert;
/**

View File

@@ -0,0 +1,9 @@
/**
* Predicate support for runtime hints.
*/
@NonNullApi
@NonNullFields
package org.springframework.aot.hint.predicate;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields;