open fun loadBeanDefinitions(vararg resources: Resource): Intopen fun loadBeanDefinitions(location: String): Intopen fun loadBeanDefinitions(vararg locations: String): Int
open fun loadBeanDefinitions(location: String, @Nullable actualResources: MutableSet<Resource>): Int
Load bean definitions from the specified resource location.
The location can also be a location pattern, provided that the ResourceLoader of this bean definition reader is a ResourcePatternResolver.
location - the resource location, to be loaded with the ResourceLoader (or ResourcePatternResolver) of this bean definition reader
actualResources - a Set to be filled with the actual Resource objects that have been resolved during the loading process. May be null to indicate that the caller is not interested in those Resource objects.
BeanDefinitionStoreException - in case of loading or parsing errors
Return
the number of bean definitions found
See Also
#getResourceLoader()#loadBeanDefinitions(org.springframework.core.io.Resource)#loadBeanDefinitions(org.springframework.core.io.Resource[])