站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

XmlReaderContext (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.beans.factory.xml
Class XmlReaderContext

java.lang.Object
  extended by org.springframework.beans.factory.parsing.ReaderContext
      extended by org.springframework.beans.factory.xml.XmlReaderContext

public class XmlReaderContext
extends ReaderContext

Extension of ReaderContext, specific to use with an XmlBeanDefinitionReader. Provides access to the NamespaceHandlerResolver configured in the XmlBeanDefinitionReader.

Since:
2.0
Author:
Rob Harrop, Juergen Hoeller

Constructor Summary
XmlReaderContext(Resource resource, ProblemReporter problemReporter, ReaderEventListener eventListener, SourceExtractor sourceExtractor, BeanDefinitionReader reader, NamespaceHandlerResolver namespaceHandlerResolver)
           
 
Method Summary
 String generateBeanName(BeanDefinition beanDefinition)
           
 ClassLoader getBeanClassLoader()
           
 NamespaceHandlerResolver getNamespaceHandlerResolver()
           
 BeanDefinitionReader getReader()
           
 BeanDefinitionRegistry getRegistry()
           
 ResourceLoader getResourceLoader()
           
 String registerWithGeneratedName(BeanDefinition beanDefinition)
           
 
Methods inherited from class org.springframework.beans.factory.parsing.ReaderContext
error, error, error, error, extractSource, fatal, fatal, fatal, fatal, fireAliasRegistered, fireComponentRegistered, fireDefaultsRegistered, fireImportProcessed, getResource, getSourceExtractor, warning, warning, warning, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlReaderContext

public XmlReaderContext(Resource resource,
                        ProblemReporter problemReporter,
                        ReaderEventListener eventListener,
                        SourceExtractor sourceExtractor,
                        BeanDefinitionReader reader,
                        NamespaceHandlerResolver namespaceHandlerResolver)
Method Detail

getReader

public final BeanDefinitionReader getReader()

getRegistry

public final BeanDefinitionRegistry getRegistry()

getResourceLoader

public final ResourceLoader getResourceLoader()

getBeanClassLoader

public final ClassLoader getBeanClassLoader()

getNamespaceHandlerResolver

public final NamespaceHandlerResolver getNamespaceHandlerResolver()

generateBeanName

public String generateBeanName(BeanDefinition beanDefinition)

registerWithGeneratedName

public String registerWithGeneratedName(BeanDefinition beanDefinition)

The Spring Framework

Copyright © 2002-2007 The Spring Framework.