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

<init>

GenericXmlApplicationContext()

Create a new GenericXmlApplicationContext that needs to be loaded and then manually refreshed.

GenericXmlApplicationContext(vararg resources: Resource)

Create a new GenericXmlApplicationContext, loading bean definitions from the given resources and automatically refreshing the context.

Parameters

resources - the resources to load from

GenericXmlApplicationContext(vararg resourceLocations: String)

Create a new GenericXmlApplicationContext, loading bean definitions from the given resource locations and automatically refreshing the context.

Parameters

resourceLocations - the resources to load from

GenericXmlApplicationContext(relativeClass: Class<*>, vararg resourceNames: String)

Create a new GenericXmlApplicationContext, loading bean definitions from the given resource locations and automatically refreshing the context.

Parameters

relativeClass - class whose package will be used as a prefix when loading each specified resource name

resourceNames - relatively-qualified names of resources to load