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
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionfromSpringFactories(ClassLoader classLoader) Return aEnvironmentPostProcessorsFactorybacked byspring.factories.getEnvironmentPostProcessors(DeferredLogFactory logFactory, ConfigurableBootstrapContext bootstrapContext) Create all requestedEnvironmentPostProcessorinstances.Return aEnvironmentPostProcessorsFactorythat reflectively creates post processors from the given classes.of(ClassLoader classLoader, String... classNames) Return aEnvironmentPostProcessorsFactorythat reflectively creates post processors from the given class names.Return aEnvironmentPostProcessorsFactorythat reflectively creates post processors from the given class names.
-
Method Details
-
getEnvironmentPostProcessors
List<EnvironmentPostProcessor> getEnvironmentPostProcessors(DeferredLogFactory logFactory, ConfigurableBootstrapContext bootstrapContext) Create all requestedEnvironmentPostProcessorinstances.- Parameters:
logFactory- a deferred log factorybootstrapContext- a bootstrap context- Returns:
- the post processor instances
-
fromSpringFactories
Return aEnvironmentPostProcessorsFactorybacked byspring.factories.- Parameters:
classLoader- the source class loader- Returns:
- an
EnvironmentPostProcessorsFactoryinstance
-
of
Return aEnvironmentPostProcessorsFactorythat reflectively creates post processors from the given classes.- Parameters:
classes- the post processor classes- Returns:
- an
EnvironmentPostProcessorsFactoryinstance
-
of
Return aEnvironmentPostProcessorsFactorythat reflectively creates post processors from the given class names.- Parameters:
classNames- the post processor class names- Returns:
- an
EnvironmentPostProcessorsFactoryinstance
-
of
Return aEnvironmentPostProcessorsFactorythat reflectively creates post processors from the given class names.- Parameters:
classLoader- the source class loaderclassNames- the post processor class names- Returns:
- an
EnvironmentPostProcessorsFactoryinstance - Since:
- 2.4.8
-