public class ApplicationContextBuilder extends Object
FilesystemGenericApplicationContext equipped with various standard features,
behavior, converters, etc.| Modifier and Type | Field and Description |
|---|---|
private Collection<String> |
beanProfiles
Bean profiles to enable.
|
private List<org.springframework.core.io.Resource> |
configurationResources
List of configuration resources for this service.
|
private List<org.springframework.context.ApplicationContextInitializer<? super FilesystemGenericApplicationContext>> |
contextInitializers
List of context initializers.
|
private String |
contextName
Context name.
|
private org.springframework.core.convert.ConversionService |
conversionService
Conversion service to use.
|
private List<org.springframework.beans.factory.config.BeanFactoryPostProcessor> |
factoryPostProcessors
List of bean factory post processors for this service's content.
|
private org.slf4j.Logger |
log
Class logger.
|
private org.springframework.context.ApplicationContext |
parentContext
Application context owning this engine.
|
private List<org.springframework.beans.factory.config.BeanPostProcessor> |
postProcessors
List of bean post processors for this service's content.
|
| Constructor and Description |
|---|
ApplicationContextBuilder() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.context.support.GenericApplicationContext |
build()
Build the context.
|
ApplicationContextBuilder |
setBeanFactoryPostProcessor(org.springframework.beans.factory.config.BeanFactoryPostProcessor processor)
Set a single bean factory post processor for this context.
|
ApplicationContextBuilder |
setBeanFactoryPostProcessors(List<org.springframework.beans.factory.config.BeanFactoryPostProcessor> processors)
Set the list of bean factory post processors for this context.
|
ApplicationContextBuilder |
setBeanPostProcessor(org.springframework.beans.factory.config.BeanPostProcessor processor)
Set a single bean post processor for this context.
|
ApplicationContextBuilder |
setBeanPostProcessors(List<org.springframework.beans.factory.config.BeanPostProcessor> processors)
Set the list of bean post processors for this context.
|
ApplicationContextBuilder |
setBeanProfiles(Collection<String> profiles)
Set the bean profiles for this context.
|
ApplicationContextBuilder |
setContextInitializer(org.springframework.context.ApplicationContextInitializer<? super FilesystemGenericApplicationContext> initializer)
Set a single context initializer for this context.
|
ApplicationContextBuilder |
setContextInitializers(List<org.springframework.context.ApplicationContextInitializer<? super FilesystemGenericApplicationContext>> initializers)
Set the list of context initializers for this context.
|
ApplicationContextBuilder |
setConversionService(org.springframework.core.convert.ConversionService service)
Set a conversion service to use.
|
ApplicationContextBuilder |
setName(String name)
Set the name of the context.
|
ApplicationContextBuilder |
setParentContext(org.springframework.context.ApplicationContext context)
Set a custom
ConversionService to use. |
ApplicationContextBuilder |
setServiceConfiguration(org.springframework.core.io.Resource config)
Set a single configuration resource for this context.
|
ApplicationContextBuilder |
setServiceConfigurations(List<org.springframework.core.io.Resource> configs)
Set the list of configurations for this context.
|
@Nonnull private final org.slf4j.Logger log
@Nullable @NonnullElements private List<org.springframework.core.io.Resource> configurationResources
@Nullable private org.springframework.core.convert.ConversionService conversionService
@Nullable @NonnullElements private List<org.springframework.context.ApplicationContextInitializer<? super FilesystemGenericApplicationContext>> contextInitializers
@Nullable @NonnullElements private List<org.springframework.beans.factory.config.BeanFactoryPostProcessor> factoryPostProcessors
@Nullable @NonnullElements private List<org.springframework.beans.factory.config.BeanPostProcessor> postProcessors
@Nullable @NonnullElements private Collection<String> beanProfiles
@Nullable private org.springframework.context.ApplicationContext parentContext
@Nonnull public ApplicationContextBuilder setName(@Nullable @NotEmpty String name)
name - name@Nonnull public ApplicationContextBuilder setConversionService(@Nullable org.springframework.core.convert.ConversionService service)
service - conversion service@Nonnull public ApplicationContextBuilder setServiceConfiguration(@Nonnull org.springframework.core.io.Resource config)
config - configuration for this context@Nonnull public ApplicationContextBuilder setServiceConfigurations(@Nonnull @NonnullElements List<org.springframework.core.io.Resource> configs)
configs - list of configurations for this context@Nonnull public ApplicationContextBuilder setContextInitializer(@Nonnull org.springframework.context.ApplicationContextInitializer<? super FilesystemGenericApplicationContext> initializer)
initializer - initializer to apply@Nonnull public ApplicationContextBuilder setContextInitializers(@Nonnull @NonnullElements List<org.springframework.context.ApplicationContextInitializer<? super FilesystemGenericApplicationContext>> initializers)
initializers - initializers to apply@Nonnull public ApplicationContextBuilder setBeanFactoryPostProcessor(@Nonnull org.springframework.beans.factory.config.BeanFactoryPostProcessor processor)
processor - bean factory post processor to apply@Nonnull public ApplicationContextBuilder setBeanFactoryPostProcessors(@Nonnull @NonnullElements List<org.springframework.beans.factory.config.BeanFactoryPostProcessor> processors)
processors - bean factory post processors to apply@Nonnull public ApplicationContextBuilder setBeanPostProcessor(@Nonnull org.springframework.beans.factory.config.BeanPostProcessor processor)
processor - bean post processor to apply@Nonnull public ApplicationContextBuilder setBeanPostProcessors(@Nonnull @NonnullElements List<org.springframework.beans.factory.config.BeanPostProcessor> processors)
processors - bean post processors to apply@Nonnull public ApplicationContextBuilder setBeanProfiles(@Nonnull @NonnullElements Collection<String> profiles)
profiles - bean profiles to apply@Nonnull public ApplicationContextBuilder setParentContext(@Nullable org.springframework.context.ApplicationContext context)
ConversionService to use.context - parent context@Nonnull public org.springframework.context.support.GenericApplicationContext build()
Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.