Configuration parsers may provide the ability to attach
source metadata during the parse phase. They will offer this metadata in a
generic format which can be further modified by a SourceExtractor
before being attached to the bean definition metadata.
org.springframework.beans.BeanMetadataElement#getSource() , org.springframework.beans.factory.config.BeanDefinition
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the source metadata object to store (may benull)the original source metadata (never sourceCandidate, Resource null)the resource that defines the given source object
(may be definingResource)null)Extract the source metadata from the candidate object supplied by the configuration parser. |
| extractSource | back to summary |
|---|---|
| public Object extractSource(Object sourceCandidate, Resource definingResource) Extract the source metadata from the candidate object supplied by the configuration parser. | |