org.springframework.beans.factory.parsing.PassThroughSourceExtractor Java Examples

The following examples show how to use org.springframework.beans.factory.parsing.PassThroughSourceExtractor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AspectJNamespaceHandlerTests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@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);
}
 
Example #2
Source File: EventPublicationTests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@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()));
}
 
Example #3
Source File: AspectJNamespaceHandlerTests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@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);
}
 
Example #4
Source File: EventPublicationTests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@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()));
}
 
Example #5
Source File: AspectJNamespaceHandlerTests.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@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);
}
 
Example #6
Source File: EventPublicationTests.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@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()));
}
 
Example #7
Source File: JmsNamespaceHandlerTests.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
protected void initBeanDefinitionReader(XmlBeanDefinitionReader beanDefinitionReader) {
	this.registeredComponents = new HashSet<>();
	beanDefinitionReader.setEventListener(new StoringReaderEventListener(this.registeredComponents));
	beanDefinitionReader.setSourceExtractor(new PassThroughSourceExtractor());
}
 
Example #8
Source File: JmsNamespaceHandlerTests.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
protected void initBeanDefinitionReader(XmlBeanDefinitionReader beanDefinitionReader) {
	this.registeredComponents = new HashSet<>();
	beanDefinitionReader.setEventListener(new StoringReaderEventListener(this.registeredComponents));
	beanDefinitionReader.setSourceExtractor(new PassThroughSourceExtractor());
}
 
Example #9
Source File: JmsNamespaceHandlerTests.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
protected void initBeanDefinitionReader(XmlBeanDefinitionReader beanDefinitionReader) {
	this.registeredComponents = new HashSet<ComponentDefinition>();
	beanDefinitionReader.setEventListener(new StoringReaderEventListener(this.registeredComponents));
	beanDefinitionReader.setSourceExtractor(new PassThroughSourceExtractor());
}
 
Example #10
Source File: ConfigurationClassPostProcessor.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Set the {@link SourceExtractor} to use for generated bean definitions
 * that correspond to {@link Bean} factory methods.
 */
public void setSourceExtractor(@Nullable SourceExtractor sourceExtractor) {
	this.sourceExtractor = (sourceExtractor != null ? sourceExtractor : new PassThroughSourceExtractor());
}
 
Example #11
Source File: ConfigurationClassPostProcessor.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Set the {@link SourceExtractor} to use for generated bean definitions
 * that correspond to {@link Bean} factory methods.
 */
public void setSourceExtractor(@Nullable SourceExtractor sourceExtractor) {
	this.sourceExtractor = (sourceExtractor != null ? sourceExtractor : new PassThroughSourceExtractor());
}
 
Example #12
Source File: ConfigurationClassPostProcessor.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * 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());
}
 
Example #13
Source File: ConfigurationClassPostProcessor.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * 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());
}