public class ReaderContext
extends java.lang.Object
Constructor and Description |
---|
ReaderContext(Resource resource,
ProblemReporter problemReporter,
ReaderEventListener eventListener,
SourceExtractor sourceExtractor)
Construct a new
ReaderContext . |
Modifier and Type | Method and Description |
---|---|
void |
error(java.lang.String message,
java.lang.Object source)
Raise a regular error.
|
void |
error(java.lang.String message,
java.lang.Object source,
ParseState parseState)
Raise a regular error.
|
void |
error(java.lang.String message,
java.lang.Object source,
ParseState parseState,
java.lang.Throwable cause)
Raise a regular error.
|
void |
error(java.lang.String message,
java.lang.Object source,
java.lang.Throwable cause)
Raise a regular error.
|
java.lang.Object |
extractSource(java.lang.Object sourceCandidate)
Call the source extractor for the given source object.
|
void |
fatal(java.lang.String message,
java.lang.Object source)
Raise a fatal error.
|
void |
fatal(java.lang.String message,
java.lang.Object source,
ParseState parseState)
Raise a fatal error.
|
void |
fatal(java.lang.String message,
java.lang.Object source,
ParseState parseState,
java.lang.Throwable cause)
Raise a fatal error.
|
void |
fatal(java.lang.String message,
java.lang.Object source,
java.lang.Throwable cause)
Raise a fatal error.
|
void |
fireAliasRegistered(java.lang.String beanName,
java.lang.String alias,
java.lang.Object source)
Fire an alias-registered event.
|
void |
fireComponentRegistered(ComponentDefinition componentDefinition)
Fire an component-registered event.
|
void |
fireDefaultsRegistered(DefaultsDefinition defaultsDefinition)
Fire an defaults-registered event.
|
void |
fireImportProcessed(java.lang.String importedResource,
java.lang.Object source)
Fire an import-processed event.
|
void |
fireImportProcessed(java.lang.String importedResource,
Resource[] actualResources,
java.lang.Object source)
Fire an import-processed event.
|
Resource |
getResource() |
SourceExtractor |
getSourceExtractor()
Return the source extractor in use.
|
void |
warning(java.lang.String message,
java.lang.Object source)
Raise a non-critical warning.
|
void |
warning(java.lang.String message,
java.lang.Object source,
ParseState parseState)
Raise a non-critical warning.
|
void |
warning(java.lang.String message,
java.lang.Object source,
ParseState parseState,
java.lang.Throwable cause)
Raise a non-critical warning.
|
void |
warning(java.lang.String message,
java.lang.Object source,
java.lang.Throwable cause)
Raise a non-critical warning.
|
public ReaderContext(Resource resource, ProblemReporter problemReporter, ReaderEventListener eventListener, SourceExtractor sourceExtractor)
ReaderContext
.resource
- the XML bean definition resourceproblemReporter
- the problem reporter in useeventListener
- the event listener in usesourceExtractor
- the source extractor in usepublic final Resource getResource()
public void fatal(java.lang.String message, @Nullable java.lang.Object source)
public void fatal(java.lang.String message, @Nullable java.lang.Object source, @Nullable java.lang.Throwable cause)
public void fatal(java.lang.String message, @Nullable java.lang.Object source, @Nullable ParseState parseState)
public void fatal(java.lang.String message, @Nullable java.lang.Object source, @Nullable ParseState parseState, @Nullable java.lang.Throwable cause)
public void error(java.lang.String message, @Nullable java.lang.Object source)
public void error(java.lang.String message, @Nullable java.lang.Object source, @Nullable java.lang.Throwable cause)
public void error(java.lang.String message, @Nullable java.lang.Object source, @Nullable ParseState parseState)
public void error(java.lang.String message, @Nullable java.lang.Object source, @Nullable ParseState parseState, @Nullable java.lang.Throwable cause)
public void warning(java.lang.String message, @Nullable java.lang.Object source)
public void warning(java.lang.String message, @Nullable java.lang.Object source, @Nullable java.lang.Throwable cause)
public void warning(java.lang.String message, @Nullable java.lang.Object source, @Nullable ParseState parseState)
public void warning(java.lang.String message, @Nullable java.lang.Object source, @Nullable ParseState parseState, @Nullable java.lang.Throwable cause)
public void fireDefaultsRegistered(DefaultsDefinition defaultsDefinition)
public void fireComponentRegistered(ComponentDefinition componentDefinition)
public void fireAliasRegistered(java.lang.String beanName, java.lang.String alias, @Nullable java.lang.Object source)
public void fireImportProcessed(java.lang.String importedResource, @Nullable java.lang.Object source)
public void fireImportProcessed(java.lang.String importedResource, Resource[] actualResources, @Nullable java.lang.Object source)
public SourceExtractor getSourceExtractor()
@Nullable public java.lang.Object extractSource(java.lang.Object sourceCandidate)
sourceCandidate
- the original source objectnull
for none.getSourceExtractor()
,
SourceExtractor.extractSource(java.lang.Object, org.springframework.core.io.Resource)