org.springframework.beans.factory.parsing
Class ReaderContext
java.lang.Object
org.springframework.beans.factory.parsing.ReaderContext
- Direct Known Subclasses:
- XmlReaderContext
public class ReaderContext
- extends Object
Context that gets passed along a bean definition reading process,
encapsulating all relevant configuration as well as state.
- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller
Method Summary |
void |
error(String message,
Object source)
|
void |
error(String message,
Object source,
ParseState parseState)
|
void |
error(String message,
Object source,
ParseState parseState,
Throwable cause)
|
Object |
extractSource(Object sourceCandidate)
|
void |
fireAliasRegistered(String beanName,
String alias,
Object source)
|
void |
fireComponentRegistered(ComponentDefinition componentDefinition)
|
void |
fireImportProcessed(String importedResource,
Object source)
|
Resource |
getResource()
|
SourceExtractor |
getSourceExtractor()
|
void |
warning(String message,
Object source)
|
void |
warning(String message,
Object source,
ParseState parseState)
|
void |
warning(String message,
Object source,
ParseState parseState,
Throwable cause)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReaderContext
public ReaderContext(Resource resource,
ProblemReporter problemReporter,
ReaderEventListener eventListener,
SourceExtractor sourceExtractor)
getResource
public Resource getResource()
error
public void error(String message,
Object source)
error
public void error(String message,
Object source,
ParseState parseState)
error
public void error(String message,
Object source,
ParseState parseState,
Throwable cause)
warning
public void warning(String message,
Object source)
warning
public void warning(String message,
Object source,
ParseState parseState)
warning
public void warning(String message,
Object source,
ParseState parseState,
Throwable cause)
fireComponentRegistered
public void fireComponentRegistered(ComponentDefinition componentDefinition)
fireAliasRegistered
public void fireAliasRegistered(String beanName,
String alias,
Object source)
fireImportProcessed
public void fireImportProcessed(String importedResource,
Object source)
getSourceExtractor
public SourceExtractor getSourceExtractor()
extractSource
public Object extractSource(Object sourceCandidate)
Copyright © 2002-2006 The Spring Framework.