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 |
---|---|
String |
generateBeanName(BeanDefinition beanDefinition) |
ClassLoader |
getBeanClassLoader() |
NamespaceHandlerResolver |
getNamespaceHandlerResolver() |
XmlBeanDefinitionReader |
getReader() |
BeanDefinitionRegistry |
getRegistry() |
ResourceLoader |
getResourceLoader() |
Document |
readDocumentFromString(String documentContent) |
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 ClassLoader getBeanClassLoader()
public final NamespaceHandlerResolver getNamespaceHandlerResolver()
public String generateBeanName(BeanDefinition beanDefinition)
public String registerWithGeneratedName(BeanDefinition beanDefinition)