@FunctionalInterface public interface EnvironmentPostProcessorsFactory
EnvironmentPostProcessorApplicationListener
to
create the EnvironmentPostProcessor
instances.Modifier and Type | Method and Description |
---|---|
static EnvironmentPostProcessorsFactory |
fromSpringFactories(ClassLoader classLoader)
Return a
EnvironmentPostProcessorsFactory backed by
spring.factories . |
List<EnvironmentPostProcessor> |
getEnvironmentPostProcessors(DeferredLogFactory logFactory,
ConfigurableBootstrapContext bootstrapContext)
Create all requested
EnvironmentPostProcessor instances. |
static EnvironmentPostProcessorsFactory |
of(Class<?>... classes)
Return a
EnvironmentPostProcessorsFactory that reflectively creates post
processors from the given classes. |
static EnvironmentPostProcessorsFactory |
of(String... classNames)
Return a
EnvironmentPostProcessorsFactory that reflectively creates post
processors from the given class names. |
List<EnvironmentPostProcessor> getEnvironmentPostProcessors(DeferredLogFactory logFactory, ConfigurableBootstrapContext bootstrapContext)
EnvironmentPostProcessor
instances.logFactory
- a deferred log factorybootstrapContext
- a bootstrap contextstatic EnvironmentPostProcessorsFactory fromSpringFactories(ClassLoader classLoader)
EnvironmentPostProcessorsFactory
backed by
spring.factories
.classLoader
- the source class loaderEnvironmentPostProcessorsFactory
instancestatic EnvironmentPostProcessorsFactory of(Class<?>... classes)
EnvironmentPostProcessorsFactory
that reflectively creates post
processors from the given classes.classes
- the post processor classesEnvironmentPostProcessorsFactory
instancestatic EnvironmentPostProcessorsFactory of(String... classNames)
EnvironmentPostProcessorsFactory
that reflectively creates post
processors from the given class names.classNames
- the post processor class namesEnvironmentPostProcessorsFactory
instance