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

<init>

GenericGroovyApplicationContext()

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

GenericGroovyApplicationContext(vararg resources: Resource)

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

Parameters

resources - the resources to load from

GenericGroovyApplicationContext(vararg resourceLocations: String)

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

Parameters

resourceLocations - the resources to load from

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

Create a new GenericGroovyApplicationContext, 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