org.springframework.beans.factory.support
Class AbstractBeanDefinitionReader

java.lang.Object
  extended byorg.springframework.beans.factory.support.AbstractBeanDefinitionReader
Direct Known Subclasses:
PropertiesBeanDefinitionReader, XmlBeanDefinitionReader

public abstract class AbstractBeanDefinitionReader
extends java.lang.Object

Abstract base class for bean definition readers. Provides common properties like the bean factory to work on and the class loader to use for loading bean classes.

Since:
11.12.2003
Author:
Juergen Hoeller

Constructor Summary
protected AbstractBeanDefinitionReader(BeanDefinitionRegistry beanFactory)
           
 
Method Summary
 java.lang.ClassLoader getBeanClassLoader()
          Return the class loader for bean classes.
 BeanDefinitionRegistry getBeanFactory()
          Return the BeanFactory that this reader works on.
 void setBeanClassLoader(java.lang.ClassLoader beanClassLoader)
          Set the class loader to use for bean classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBeanDefinitionReader

protected AbstractBeanDefinitionReader(BeanDefinitionRegistry beanFactory)
Method Detail

getBeanFactory

public BeanDefinitionRegistry getBeanFactory()
Return the BeanFactory that this reader works on.


setBeanClassLoader

public void setBeanClassLoader(java.lang.ClassLoader beanClassLoader)
Set the class loader to use for bean classes. Default is the thread context class loader.

Setting this to 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.

See Also:
Thread.getContextClassLoader()

getBeanClassLoader

public java.lang.ClassLoader getBeanClassLoader()
Return the class loader for bean classes.



Copyright (C) 2003-2004 The Spring Framework Project.