spring-framework / org.springframework.context.support / GenericGroovyApplicationContext / load

load

open fun load(vararg resources: Resource): Unit

Load bean definitions from the given Groovy scripts or XML files.

Note that ".xml" files will be parsed as XML content; all other kinds of resources will be parsed as Groovy scripts.

Parameters

resources - one or more resources to load from

open fun load(vararg resourceLocations: String): Unit

Load bean definitions from the given Groovy scripts or XML files.

Note that ".xml" files will be parsed as XML content; all other kinds of resources will be parsed as Groovy scripts.

Parameters

resourceLocations - one or more resource locations to load from

open fun load(relativeClass: Class<*>, vararg resourceNames: String): Unit

Load bean definitions from the given Groovy scripts or XML files.

Note that ".xml" files will be parsed as XML content; all other kinds of resources will be parsed as Groovy scripts.

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