Search in sources :

Example 1 with PassThroughSourceExtractor

use of cn.taketoday.beans.factory.parsing.PassThroughSourceExtractor in project today-infrastructure by TAKETODAY.

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);
}
Also used : PassThroughSourceExtractor(cn.taketoday.beans.factory.parsing.PassThroughSourceExtractor) XmlBeanDefinitionReader(cn.taketoday.beans.factory.xml.XmlBeanDefinitionReader) XmlReaderContext(cn.taketoday.beans.factory.xml.XmlReaderContext) ParserContext(cn.taketoday.beans.factory.xml.ParserContext) PassThroughSourceExtractor(cn.taketoday.beans.factory.parsing.PassThroughSourceExtractor) SourceExtractor(cn.taketoday.beans.factory.parsing.SourceExtractor) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with PassThroughSourceExtractor

use of cn.taketoday.beans.factory.parsing.PassThroughSourceExtractor in project today-infrastructure by TAKETODAY.

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()));
}
Also used : PassThroughSourceExtractor(cn.taketoday.beans.factory.parsing.PassThroughSourceExtractor) ClassPathResource(cn.taketoday.core.io.ClassPathResource) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 3 with PassThroughSourceExtractor

use of cn.taketoday.beans.factory.parsing.PassThroughSourceExtractor in project today-framework by TAKETODAY.

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()));
}
Also used : PassThroughSourceExtractor(cn.taketoday.beans.factory.parsing.PassThroughSourceExtractor) ClassPathResource(cn.taketoday.core.io.ClassPathResource) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 4 with PassThroughSourceExtractor

use of cn.taketoday.beans.factory.parsing.PassThroughSourceExtractor in project today-framework by TAKETODAY.

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);
}
Also used : PassThroughSourceExtractor(cn.taketoday.beans.factory.parsing.PassThroughSourceExtractor) XmlBeanDefinitionReader(cn.taketoday.beans.factory.xml.XmlBeanDefinitionReader) XmlReaderContext(cn.taketoday.beans.factory.xml.XmlReaderContext) ParserContext(cn.taketoday.beans.factory.xml.ParserContext) PassThroughSourceExtractor(cn.taketoday.beans.factory.parsing.PassThroughSourceExtractor) SourceExtractor(cn.taketoday.beans.factory.parsing.SourceExtractor) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

PassThroughSourceExtractor (cn.taketoday.beans.factory.parsing.PassThroughSourceExtractor)4 BeforeEach (org.junit.jupiter.api.BeforeEach)4 SourceExtractor (cn.taketoday.beans.factory.parsing.SourceExtractor)2 ParserContext (cn.taketoday.beans.factory.xml.ParserContext)2 XmlBeanDefinitionReader (cn.taketoday.beans.factory.xml.XmlBeanDefinitionReader)2 XmlReaderContext (cn.taketoday.beans.factory.xml.XmlReaderContext)2 ClassPathResource (cn.taketoday.core.io.ClassPathResource)2