Class SpecificationArgumentResolverProxyHintRegistrar
java.lang.Object
net.kaczmarzyk.spring.data.jpa.nativeimage.SpecificationArgumentResolverProxyHintRegistrar
- All Implemented Interfaces:
org.springframework.aot.hint.RuntimeHintsRegistrar
public abstract class SpecificationArgumentResolverProxyHintRegistrar
extends Object
implements org.springframework.aot.hint.RuntimeHintsRegistrar
Registers the interfaces annotated with specification-argument-resolver annotations. (EnhancerUtil creates proxy for them)
This is needed for using this library in Spring Native builds (the proxy classes have to be generated at the compilation time).
Example of interface annotated with specification-argument-resolver annotations for which the proxy hint should be registered:
@Spec(path = "lastName", spec = Equal.class, constVal = "Simpson")
public interface SimpsonSpec extends Specification<Customer> {}
- Author:
- Jakub Radlica
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSpecificationArgumentResolverProxyHintRegistrar(String... packagesWithInterfacesContainingSpecificationDefinitions) -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterHints(org.springframework.aot.hint.RuntimeHints hints, ClassLoader classLoader)
-
Field Details
-
SPECIFICATIONS_PACKAGE_NAME
- See Also:
-
-
Constructor Details
-
SpecificationArgumentResolverProxyHintRegistrar
protected SpecificationArgumentResolverProxyHintRegistrar(String... packagesWithInterfacesContainingSpecificationDefinitions) - Parameters:
packagesWithInterfacesContainingSpecificationDefinitions- - the packages which should be scanned
-
-
Method Details
-
registerHints
- Specified by:
registerHintsin interfaceorg.springframework.aot.hint.RuntimeHintsRegistrar
-