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 Summary
ConstructorsConstructorDescriptionBinderChildContextInitializer
(Map<String, org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>> childContextInitializers) -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.springframework.beans.factory.aot.BeanRegistrationAotContribution
processAheadOfTime
(org.springframework.beans.factory.support.RegisteredBean registeredBean) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setBinderFactory
(DefaultBinderFactory binderFactory) withChildContextInitializers
(Map<String, org.springframework.context.ApplicationContextInitializer<? extends org.springframework.context.ConfigurableApplicationContext>> childContextInitializers) Callback for AOT generatedpost-process method
which basically swaps the instance with one that uses the AOT generated child context initializers.
-
Constructor Details
-
BinderChildContextInitializer
public BinderChildContextInitializer() -
BinderChildContextInitializer
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
setBinderFactory
-
isBeanExcludedFromAotProcessing
public boolean isBeanExcludedFromAotProcessing()- Specified by:
isBeanExcludedFromAotProcessing
in interfaceorg.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 interfaceorg.springframework.beans.factory.aot.BeanRegistrationAotProcessor
-
withChildContextInitializers
public BinderChildContextInitializer withChildContextInitializers(Map<String, org.springframework.context.ApplicationContextInitializer<? extends org.springframework.context.ConfigurableApplicationContext>> childContextInitializers) Callback for AOT generatedpost-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
-