Java 类org.springframework.beans.factory.parsing.PassThroughSourceExtractor 实例源码

项目:spring4-understanding    文件:AspectJNamespaceHandlerTests.java   
@Before
public void setUp() throws Exception {
    SourceExtractor sourceExtractor = new PassThroughSourceExtractor();
    XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(this.registry);
    XmlReaderContext readerContext =
            new XmlReaderContext(null, null, this.readerEventListener, sourceExtractor, reader, null);
    this.parserContext = new ParserContext(readerContext, null);
}
项目:spring4-understanding    文件:EventPublicationTests.java   
@Before
public void setUp() throws Exception {
    XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(this.beanFactory);
    reader.setEventListener(this.eventListener);
    reader.setSourceExtractor(new PassThroughSourceExtractor());
    reader.loadBeanDefinitions(new ClassPathResource("beanEvents.xml", getClass()));
}
项目:class-guard    文件:AspectJNamespaceHandlerTests.java   
@Before
public void setUp() throws Exception {
    SourceExtractor sourceExtractor = new PassThroughSourceExtractor();
    XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(this.registry);
    XmlReaderContext readerContext =
            new XmlReaderContext(null, null, this.readerEventListener, sourceExtractor, reader, null);
    this.parserContext = new ParserContext(readerContext, null);
}
项目:class-guard    文件:EventPublicationTests.java   
@Override
protected void setUp() throws Exception {
    XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(this.beanFactory);
    reader.setEventListener(this.eventListener);
    reader.setSourceExtractor(new PassThroughSourceExtractor());
    reader.loadBeanDefinitions(new ClassPathResource("beanEvents.xml", getClass()));
}
项目:spring4-understanding    文件:JmsNamespaceHandlerTests.java   
@Override
protected void initBeanDefinitionReader(XmlBeanDefinitionReader beanDefinitionReader) {
    this.registeredComponents = new HashSet<ComponentDefinition>();
    beanDefinitionReader.setEventListener(new StoringReaderEventListener(this.registeredComponents));
    beanDefinitionReader.setSourceExtractor(new PassThroughSourceExtractor());
}
项目:class-guard    文件:JmsNamespaceHandlerTests.java   
@Override
protected void initBeanDefinitionReader(XmlBeanDefinitionReader beanDefinitionReader) {
    this.registeredComponents = new HashSet<ComponentDefinition>();
    beanDefinitionReader.setEventListener(new StoringReaderEventListener(this.registeredComponents));
    beanDefinitionReader.setSourceExtractor(new PassThroughSourceExtractor());
}
项目:lams    文件:ConfigurationClassPostProcessor.java   
/**
 * Set the {@link SourceExtractor} to use for generated bean definitions
 * that correspond to {@link Bean} factory methods.
 */
public void setSourceExtractor(SourceExtractor sourceExtractor) {
    this.sourceExtractor = (sourceExtractor != null ? sourceExtractor : new PassThroughSourceExtractor());
}
项目:spring4-understanding    文件:ConfigurationClassPostProcessor.java   
/**
 * Set the {@link SourceExtractor} to use for generated bean definitions
 * that correspond to {@link Bean} factory methods.
 */
public void setSourceExtractor(SourceExtractor sourceExtractor) {
    this.sourceExtractor = (sourceExtractor != null ? sourceExtractor : new PassThroughSourceExtractor());
}
项目:my-spring-cache-redis    文件:ConfigurationClassPostProcessor.java   
/**
 * Set the {@link SourceExtractor} to use for generated bean definitions
 * that correspond to {@link Bean} factory methods.
 */
public void setSourceExtractor(SourceExtractor sourceExtractor) {
    this.sourceExtractor = (sourceExtractor != null ? sourceExtractor : new PassThroughSourceExtractor());
}
项目:spring    文件:ConfigurationClassPostProcessor.java   
/**
 * Set the {@link SourceExtractor} to use for generated bean definitions
 * that correspond to {@link Bean} factory methods.
 */
public void setSourceExtractor(SourceExtractor sourceExtractor) {
    this.sourceExtractor = (sourceExtractor != null ? sourceExtractor : new PassThroughSourceExtractor());
}
项目:class-guard    文件:ConfigurationClassPostProcessor.java   
/**
 * Set the {@link SourceExtractor} to use for generated bean definitions
 * that correspond to {@link Bean} factory methods.
 */
public void setSourceExtractor(SourceExtractor sourceExtractor) {
    this.sourceExtractor = (sourceExtractor != null ? sourceExtractor : new PassThroughSourceExtractor());
}