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

NullSourceExtractor

open class NullSourceExtractor : SourceExtractor

Simple implementation of SourceExtractor that returns null as the source metadata.

This is the default implementation and prevents too much metadata from being held in memory during normal (non-tooled) runtime usage.

Author
Rob Harrop

Since
2.0

Constructors

<init>

NullSourceExtractor()

Simple implementation of SourceExtractor that returns null as the source metadata.

This is the default implementation and prevents too much metadata from being held in memory during normal (non-tooled) runtime usage.

Functions

extractSource

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

This implementation simply returns null for any input.