open class ReaderContext
Context that gets passed along a bean definition reading process, encapsulating all relevant configuration as well as state.
Author
Rob Harrop
Author
Juergen Hoeller
Since
2.0
ReaderContext(resource: Resource, problemReporter: ProblemReporter, eventListener: ReaderEventListener, sourceExtractor: SourceExtractor)
Construct a new |
open fun error(message: String, source: Any): Unitopen fun error(message: String, source: Any, cause: Throwable): Unitopen fun error(message: String, source: Any, parseState: ParseState): Unitopen fun error(message: String, source: Any, parseState: ParseState, cause: Throwable): Unit
Raise a regular error. |
|
open fun extractSource(sourceCandidate: Any): Any
Call the source extractor for the given source object. |
|
open fun fatal(message: String, source: Any): Unitopen fun fatal(message: String, source: Any, cause: Throwable): Unitopen fun fatal(message: String, source: Any, parseState: ParseState): Unitopen fun fatal(message: String, source: Any, parseState: ParseState, cause: Throwable): Unit
Raise a fatal error. |
|
open fun fireAliasRegistered(beanName: String, alias: String, source: Any): Unit
Fire an alias-registered event. |
|
open fun fireComponentRegistered(componentDefinition: ComponentDefinition): Unit
Fire an component-registered event. |
|
open fun fireDefaultsRegistered(defaultsDefinition: DefaultsDefinition): Unit
Fire an defaults-registered event. |
|
open fun fireImportProcessed(importedResource: String, source: Any): Unitopen fun fireImportProcessed(importedResource: String, actualResources: Array<Resource>, source: Any): Unit
Fire an import-processed event. |
|
fun getResource(): Resource |
|
open fun getSourceExtractor(): SourceExtractor
Return the source extractor in use. |
|
open fun warning(message: String, source: Any): Unitopen fun warning(message: String, source: Any, cause: Throwable): Unitopen fun warning(message: String, source: Any, parseState: ParseState): Unitopen fun warning(message: String, source: Any, parseState: ParseState, cause: Throwable): Unit
Raise a non-critical warning. |
open class XmlReaderContext : ReaderContext
Extension of org.springframework.beans.factory.parsing.ReaderContext, specific to use with an XmlBeanDefinitionReader. Provides access to the NamespaceHandlerResolver configured in the XmlBeanDefinitionReader. |