use of org.springframework.beans.factory.parsing.PassThroughSourceExtractor in project spring-framework by spring-projects.
the class EventPublicationTests method setUp.
@BeforeEach
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()));
}
use of org.springframework.beans.factory.parsing.PassThroughSourceExtractor in project spring-framework by spring-projects.
the class AspectJNamespaceHandlerTests method setUp.
@BeforeEach
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);
}
Aggregations