Example usage for org.springframework.beans.factory.parsing NullSourceExtractor NullSourceExtractor

List of usage examples for org.springframework.beans.factory.parsing NullSourceExtractor NullSourceExtractor

Introduction

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

Prototype

NullSourceExtractor

Source Link

Usage

From source file:grails.spring.BeanBuilder.java

protected void initializeBeanBuilderForClassLoader(ClassLoader classLoader) {
    xmlBeanDefinitionReader.setBeanClassLoader(classLoader);
    namespaceHandlerResolver = new DefaultNamespaceHandlerResolver(this.classLoader);
    readerContext = new XmlReaderContext(beanBuildResource, new FailFastProblemReporter(),
            new EmptyReaderEventListener(), new NullSourceExtractor(), xmlBeanDefinitionReader,
            namespaceHandlerResolver);//from w w  w  .ja v a 2 s  .  c o m
}

From source file:org.data.support.beans.factory.xml.XmlQueryDefinitionReader.java

/**
 * Specify the {@link SourceExtractor} to use.
 * <p>The default implementation is {@link NullSourceExtractor} which simply returns <code>null</code>
 * as the source object. This means that - during normal runtime execution -
 * no additional source metadata is attached to the bean configuration metadata.
 *///w w  w . java2 s.  c om
public void setSourceExtractor(SourceExtractor sourceExtractor) {
    this.sourceExtractor = (sourceExtractor != null ? sourceExtractor : new NullSourceExtractor());
}

From source file:org.springframework.context.groovy.GroovyBeanDefinitionReader.java

protected void initializeGroovyBeanDefinitionReaderForClassLoader(ClassLoader classLoader) {
    xmlBeanDefinitionReader.setBeanClassLoader(classLoader);
    this.namespaceHandlerResolver = new DefaultNamespaceHandlerResolver(this.classLoader);
    this.readerContext = new XmlReaderContext(beanBuildResource, new FailFastProblemReporter(),
            new EmptyReaderEventListener(), new NullSourceExtractor(), xmlBeanDefinitionReader,
            namespaceHandlerResolver);/*from w  w w . jav  a2s.  com*/
}