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