|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Simple interface for bean definition readers. Specifies a load method with a Resource parameter.
Concrete bean definition readers can of course add additional load and register methods for bean definitions, specific to their bean definition format.
Resource| Method Summary | |
ClassLoader |
getBeanClassLoader()
Return the class loader to use for bean classes. |
BeanDefinitionRegistry |
getBeanFactory()
Return the bean factory to register the bean definitions with. |
int |
loadBeanDefinitions(Resource resource)
Load bean definitions from the specified resource. |
| Method Detail |
public BeanDefinitionRegistry getBeanFactory()
public ClassLoader getBeanClassLoader()
Null suggests to not load bean classes but just register bean definitions with class names, for example when just registering beans in a registry but not actually instantiating them in a factory.
public int loadBeanDefinitions(Resource resource)
throws BeansException
resource - the resource descriptor
BeansException - in case of loading or parsing errors
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||