spring-framework / org.springframework.beans.factory.parsing / PassThroughSourceExtractor

PassThroughSourceExtractor

open class PassThroughSourceExtractor : SourceExtractor

Simple SourceExtractor implementation that just passes the candidate source metadata object through for attachment.

Using this implementation means that tools will get raw access to the underlying configuration source metadata provided by the tool.

This implementation should not be used in a production application since it is likely to keep too much metadata in memory (unnecessarily).

Author
Rob Harrop

Since
2.0

Constructors

<init>

PassThroughSourceExtractor()

Simple SourceExtractor implementation that just passes the candidate source metadata object through for attachment.

Using this implementation means that tools will get raw access to the underlying configuration source metadata provided by the tool.

This implementation should not be used in a production application since it is likely to keep too much metadata in memory (unnecessarily).

Functions

extractSource

open fun extractSource(sourceCandidate: Any, definingResource: Resource): Any

Simply returns the supplied sourceCandidate as-is.