Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Move hints into AOT package to align with other hints. Reduce visibility.

See: #3025
Original pull request: #3026
  • Loading branch information
mp911de committed Jan 22, 2024
1 parent 15d411b commit 6b6a901
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.data.web.aot.hint;
package org.springframework.data.web.aot;

import org.springframework.aot.hint.RuntimeHints;
import org.springframework.aot.hint.RuntimeHintsRegistrar;
Expand All @@ -22,16 +22,17 @@
import org.springframework.lang.Nullable;

/**
* {@link RuntimeHintsRegistrar} providing hints for web usage.
*
* @author Christoph Strobl
* @since 3.2.3
*/
public class WebRuntimeHints implements RuntimeHintsRegistrar {
class WebRuntimeHints implements RuntimeHintsRegistrar {

@Override
public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) {

hints.reflection().registerType(TypeReference.of("org.springframework.data.domain.Unpaged"), hint -> {
hint.onReachableType(PageModule.class);
});
hints.reflection().registerType(TypeReference.of("org.springframework.data.domain.Unpaged"),
hint -> hint.onReachableType(PageModule.class));
}
}
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/spring/aot.factories
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor=\
org.springframework.aot.hint.RuntimeHintsRegistrar=\
org.springframework.data.repository.aot.hint.RepositoryRuntimeHints,\
org.springframework.data.querydsl.aot.QuerydslHints,\
org.springframework.data.web.aot.hint.WebRuntimeHints
org.springframework.data.web.aot.WebRuntimeHints

org.springframework.beans.factory.aot.BeanRegistrationAotProcessor=\
org.springframework.data.aot.AuditingBeanRegistrationAotProcessor
org.springframework.data.aot.AuditingBeanRegistrationAotProcessor

0 comments on commit 6b6a901

Please sign in to comment.