Top Description Constructors Methods
org.springframework.beans.factory.parsing

public Class PassThroughSourceExtractor

extends Object
implements SourceExtractor
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.parsing.SourceExtractor
Imports
org.springframework.core.io.Resource, org.springframework.lang.Nullable

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the supplied sourceCandidate
extractSource
(Object
the source metadata
sourceCandidate
,
Resource
the resource that defines the given source object (may be null)
definingResource
)

Implements org.springframework.beans.factory.parsing.SourceExtractor.extractSource.

Simply returns the supplied sourceCandidate as-is.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PassThroughSourceExtractorback to summary
public PassThroughSourceExtractor()

Method Detail

extractSourceback to summary
public Object extractSource(Object sourceCandidate, Resource definingResource)

Implements org.springframework.beans.factory.parsing.SourceExtractor.extractSource.

Simply returns the supplied sourceCandidate as-is.

Parameters
sourceCandidate:Object

the source metadata

definingResource:Resource

Doc from org.springframework.beans.factory.parsing.SourceExtractor.extractSource.

the resource that defines the given source object (may be null)

Returns:Object

the supplied sourceCandidate

Annotations
@Override