Class BinderChildContextInitializer

java.lang.Object
org.springframework.cloud.stream.binder.BinderChildContextInitializer
All Implemented Interfaces:
org.springframework.beans.factory.aot.BeanRegistrationAotProcessor, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class BinderChildContextInitializer extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.aot.BeanRegistrationAotProcessor
Since:
4.0
Author:
Chris Bono
  • Constructor Details

    • BinderChildContextInitializer

      public BinderChildContextInitializer()
    • BinderChildContextInitializer

      public BinderChildContextInitializer(Map<String,org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>> childContextInitializers)
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • setBinderFactory

      public void setBinderFactory(DefaultBinderFactory binderFactory)
    • isBeanExcludedFromAotProcessing

      public boolean isBeanExcludedFromAotProcessing()
      Specified by:
      isBeanExcludedFromAotProcessing in interface org.springframework.beans.factory.aot.BeanRegistrationAotProcessor
    • processAheadOfTime

      public org.springframework.beans.factory.aot.BeanRegistrationAotContribution processAheadOfTime(org.springframework.beans.factory.support.RegisteredBean registeredBean)
      Specified by:
      processAheadOfTime in interface org.springframework.beans.factory.aot.BeanRegistrationAotProcessor
    • withChildContextInitializers

      public BinderChildContextInitializer withChildContextInitializers(Map<String,org.springframework.context.ApplicationContextInitializer<? extends org.springframework.context.ConfigurableApplicationContext>> childContextInitializers)
      Callback for AOT generated post-process method which basically swaps the instance with one that uses the AOT generated child context initializers.
      Parameters:
      childContextInitializers - the child context initializers to use
      Returns:
      copy of this instance that uses the AOT generated child context initializers