spring-framework / org.springframework.context.support / FileSystemXmlApplicationContext / <init>

<init>

FileSystemXmlApplicationContext()

Create a new FileSystemXmlApplicationContext for bean-style configuration.

See Also
#setConfigLocation#setConfigLocations#afterPropertiesSet()

FileSystemXmlApplicationContext(parent: ApplicationContext)

Create a new FileSystemXmlApplicationContext for bean-style configuration.

Parameters

parent - the parent context

See Also
#setConfigLocation#setConfigLocations#afterPropertiesSet()

FileSystemXmlApplicationContext(configLocation: String)

Create a new FileSystemXmlApplicationContext, loading the definitions from the given XML file and automatically refreshing the context.

Parameters

configLocation - file path

Exceptions

BeansException - if context creation failed

FileSystemXmlApplicationContext(vararg configLocations: String)

Create a new FileSystemXmlApplicationContext, loading the definitions from the given XML files and automatically refreshing the context.

Parameters

configLocations - array of file paths

Exceptions

BeansException - if context creation failed

FileSystemXmlApplicationContext(configLocations: Array<String>, parent: ApplicationContext)

Create a new FileSystemXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.

Parameters

configLocations - array of file paths

parent - the parent context

Exceptions

BeansException - if context creation failed

FileSystemXmlApplicationContext(configLocations: Array<String>, refresh: Boolean)

Create a new FileSystemXmlApplicationContext, loading the definitions from the given XML files.

Parameters

configLocations - array of file paths

refresh - whether to automatically refresh the context, loading all bean definitions and creating all singletons. Alternatively, call refresh manually after further configuring the context.

Exceptions

BeansException - if context creation failed

See Also
#refresh()

FileSystemXmlApplicationContext(configLocations: Array<String>, refresh: Boolean, @Nullable parent: ApplicationContext)

Create a new FileSystemXmlApplicationContext with the given parent, loading the definitions from the given XML files.

Parameters

configLocations - array of file paths

refresh - whether to automatically refresh the context, loading all bean definitions and creating all singletons. Alternatively, call refresh manually after further configuring the context.

parent - the parent context

Exceptions

BeansException - if context creation failed

See Also
#refresh()