spring-cloud-gcp-pubsub-stream-binder/src/main/java/com/google/cloud/spring/stream/binder/pubsub/aot/PubSubConsumerPropertiesRuntimeHints.java [27:42]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public void registerHints(RuntimeHints hints, ClassLoader classLoader) {

    // Called reflectively in org.springframework.cloud.stream.binder.AbstractExtendedBindingProperties#bindToDefault().
    hints
        .reflection()
        .registerType(
            TypeReference.of(
                "com.google.cloud.spring.stream.binder.pubsub.properties.PubSubConsumerProperties"),
            MemberCategory.INVOKE_DECLARED_CONSTRUCTORS,
            MemberCategory.INVOKE_DECLARED_METHODS)
        .registerType(
            TypeReference.of(
                "com.google.cloud.spring.stream.binder.pubsub.properties.PubSubConsumerProperties$DeadLetterPolicy"),
            MemberCategory.INVOKE_DECLARED_CONSTRUCTORS,
            MemberCategory.INVOKE_DECLARED_METHODS);
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spring-cloud-gcp-samples/spring-cloud-gcp-pubsub-stream-functional-sample/spring-cloud-gcp-pubsub-stream-functional-sample-test/src/main/java/com/example/aot/FunctionalSampleRuntimeHints.java [26:46]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
    // The call to `new SpringApplicationBuilder()` invokes
    // SpringApplicationBuilder#createSpringApplicatin which transitively results in
    // ExcludeFilterApplicationContextInitializer.class being reflectively called through
    // SpringFactoriesLoader#instantiateFactory. Similarly, the call to SpringApplicationBuilder#run
    // invokes SpringApplication.prepareEnvironment which transitively results in
    // SpringFactoriesLoader#instantiateFactory being invoked on
    // SpringBootTestRandomPortEnvironmentPostProcessor.
    hints
        .reflection()
        .registerType(
            TypeReference.of(
                "org.springframework.boot.test.context.filter.ExcludeFilterApplicationContextInitializer"),
            MemberCategory.INVOKE_DECLARED_CONSTRUCTORS,
            MemberCategory.INVOKE_DECLARED_METHODS)
        .registerType(
            TypeReference.of(
                "org.springframework.boot.test.web.SpringBootTestRandomPortEnvironmentPostProcessor"),
            MemberCategory.INVOKE_DECLARED_CONSTRUCTORS,
            MemberCategory.INVOKE_DECLARED_METHODS);
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



