public class XmlReaderContext extends ReaderContext
ReaderContext
,
specific to use with an XmlBeanDefinitionReader
. Provides access to the
NamespaceHandlerResolver
configured in the XmlBeanDefinitionReader
.Constructor and Description |
---|
XmlReaderContext(Resource resource,
ProblemReporter problemReporter,
ReaderEventListener eventListener,
SourceExtractor sourceExtractor,
XmlBeanDefinitionReader reader,
NamespaceHandlerResolver namespaceHandlerResolver) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateBeanName(BeanDefinition beanDefinition) |
java.lang.ClassLoader |
getBeanClassLoader() |
Environment |
getEnvironment() |
NamespaceHandlerResolver |
getNamespaceHandlerResolver() |
XmlBeanDefinitionReader |
getReader() |
BeanDefinitionRegistry |
getRegistry() |
ResourceLoader |
getResourceLoader() |
org.w3c.dom.Document |
readDocumentFromString(java.lang.String documentContent) |
java.lang.String |
registerWithGeneratedName(BeanDefinition beanDefinition) |
error, error, error, error, extractSource, fatal, fatal, fatal, fatal, fireAliasRegistered, fireComponentRegistered, fireDefaultsRegistered, fireImportProcessed, fireImportProcessed, getResource, getSourceExtractor, warning, warning, warning, warning
public XmlReaderContext(Resource resource, ProblemReporter problemReporter, ReaderEventListener eventListener, SourceExtractor sourceExtractor, XmlBeanDefinitionReader reader, NamespaceHandlerResolver namespaceHandlerResolver)
public final XmlBeanDefinitionReader getReader()
public final BeanDefinitionRegistry getRegistry()
public final ResourceLoader getResourceLoader()
public final java.lang.ClassLoader getBeanClassLoader()
public final Environment getEnvironment()
public final NamespaceHandlerResolver getNamespaceHandlerResolver()
public java.lang.String generateBeanName(BeanDefinition beanDefinition)
public java.lang.String registerWithGeneratedName(BeanDefinition beanDefinition)
public org.w3c.dom.Document readDocumentFromString(java.lang.String documentContent)