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:
- 4.0.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionfromSpringFactories(@Nullable ClassLoader classLoader) Return anEnvironmentPostProcessorsFactorybacked byspring.factories.getEnvironmentPostProcessors(DeferredLogFactory logFactory, ConfigurableBootstrapContext bootstrapContext) Create all requestedEnvironmentPostProcessorinstances.of(@Nullable ClassLoader classLoader, String... classNames) Return anEnvironmentPostProcessorsFactorythat reflectively creates post processors from the given class names.Return anEnvironmentPostProcessorsFactorythat reflectively creates post processors from the given classes.Return anEnvironmentPostProcessorsFactorythat 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 anEnvironmentPostProcessorsFactorybacked byspring.factories.- Parameters:
classLoader- the source class loader- Returns:
- an
EnvironmentPostProcessorsFactoryinstance
-
of
Return anEnvironmentPostProcessorsFactorythat reflectively creates post processors from the given classes.- Parameters:
classes- the post processor classes- Returns:
- an
EnvironmentPostProcessorsFactoryinstance
-
of
Return anEnvironmentPostProcessorsFactorythat reflectively creates post processors from the given class names.- Parameters:
classNames- the post processor class names- Returns:
- an
EnvironmentPostProcessorsFactoryinstance
-
of
Return anEnvironmentPostProcessorsFactorythat reflectively creates post processors from the given class names.- Parameters:
classLoader- the source class loaderclassNames- the post processor class names- Returns:
- an
EnvironmentPostProcessorsFactoryinstance
-