Package org.springframework.boot.env
Interface EnvironmentPostProcessorsFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory interface used by the
EnvironmentPostProcessorApplicationListener
to
create the EnvironmentPostProcessor
instances.- Since:
- 2.4.0
-
Method Summary
Modifier and TypeMethodDescriptionfromSpringFactories
(ClassLoader classLoader) Return aEnvironmentPostProcessorsFactory
backed byspring.factories
.getEnvironmentPostProcessors
(DeferredLogFactory logFactory, ConfigurableBootstrapContext bootstrapContext) Create all requestedEnvironmentPostProcessor
instances.Return aEnvironmentPostProcessorsFactory
that reflectively creates post processors from the given classes.of
(ClassLoader classLoader, String... classNames) Return aEnvironmentPostProcessorsFactory
that reflectively creates post processors from the given class names.Return aEnvironmentPostProcessorsFactory
that reflectively creates post processors from the given class names.
-
Method Details
-
getEnvironmentPostProcessors
List<EnvironmentPostProcessor> getEnvironmentPostProcessors(DeferredLogFactory logFactory, ConfigurableBootstrapContext bootstrapContext) Create all requestedEnvironmentPostProcessor
instances.- Parameters:
logFactory
- a deferred log factorybootstrapContext
- a bootstrap context- Returns:
- the post processor instances
-
fromSpringFactories
Return aEnvironmentPostProcessorsFactory
backed byspring.factories
.- Parameters:
classLoader
- the source class loader- Returns:
- an
EnvironmentPostProcessorsFactory
instance
-
of
Return aEnvironmentPostProcessorsFactory
that reflectively creates post processors from the given classes.- Parameters:
classes
- the post processor classes- Returns:
- an
EnvironmentPostProcessorsFactory
instance
-
of
Return aEnvironmentPostProcessorsFactory
that reflectively creates post processors from the given class names.- Parameters:
classNames
- the post processor class names- Returns:
- an
EnvironmentPostProcessorsFactory
instance
-
of
Return aEnvironmentPostProcessorsFactory
that reflectively creates post processors from the given class names.- Parameters:
classLoader
- the source class loaderclassNames
- the post processor class names- Returns:
- an
EnvironmentPostProcessorsFactory
instance - Since:
- 2.4.8
-