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 Details

  • Constructor Details

    • SpecificationArgumentResolverProxyHintRegistrar

      protected SpecificationArgumentResolverProxyHintRegistrar(String... packagesWithInterfacesContainingSpecificationDefinitions)
      Parameters:
      packagesWithInterfacesContainingSpecificationDefinitions - - the packages which should be scanned
  • Method Details

    • registerHints

      public void registerHints(org.springframework.aot.hint.RuntimeHints hints, ClassLoader classLoader)
      Specified by:
      registerHints in interface org.springframework.aot.hint.RuntimeHintsRegistrar