Example usage for org.springframework.beans.factory.parsing ReaderContext extractSource

List of usage examples for org.springframework.beans.factory.parsing ReaderContext extractSource

Introduction

In this page you can find the example usage for org.springframework.beans.factory.parsing ReaderContext extractSource.

Prototype

@Nullable
public Object extractSource(Object sourceCandidate) 

Source Link

Document

Call the source extractor for the given source object.

Usage

From source file:org.springframework.data.repository.config.AbstractRepositoryConfigDefinitionParser.java

private void handleError(Exception e, Element source, ReaderContext reader) {

    reader.error(e.getMessage(), reader.extractSource(source), e.getCause());
}

From source file:org.springframework.data.repository.config.RepositoryBeanDefinitionParser.java

private void handleError(Exception e, Element source, ReaderContext reader) {
    reader.error(e.getMessage(), reader.extractSource(source), e);
}