Java Code Examples for org.springframework.beans.factory.parsing.ReaderEventListener

The following examples show how to use org.springframework.beans.factory.parsing.ReaderEventListener. These examples are extracted from open source projects. 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 Project: spring-analysis-note   Source File: XmlReaderContext.java    License: MIT License 5 votes vote down vote up
/**
 * Construct a new {@code XmlReaderContext}.
 * @param resource the XML bean definition resource
 * @param problemReporter the problem reporter in use
 * @param eventListener the event listener in use
 * @param sourceExtractor the source extractor in use
 * @param reader the XML bean definition reader in use
 * @param namespaceHandlerResolver the XML namespace resolver
 */
public XmlReaderContext(
		Resource resource, ProblemReporter problemReporter,
		ReaderEventListener eventListener, SourceExtractor sourceExtractor,
		XmlBeanDefinitionReader reader, NamespaceHandlerResolver namespaceHandlerResolver) {

	super(resource, problemReporter, eventListener, sourceExtractor);
	this.reader = reader;
	this.namespaceHandlerResolver = namespaceHandlerResolver;
}
 
Example 2
Source Project: java-technology-stack   Source File: XmlReaderContext.java    License: MIT License 5 votes vote down vote up
/**
 * Construct a new {@code XmlReaderContext}.
 * @param resource the XML bean definition resource
 * @param problemReporter the problem reporter in use
 * @param eventListener the event listener in use
 * @param sourceExtractor the source extractor in use
 * @param reader the XML bean definition reader in use
 * @param namespaceHandlerResolver the XML namespace resolver
 */
public XmlReaderContext(
		Resource resource, ProblemReporter problemReporter,
		ReaderEventListener eventListener, SourceExtractor sourceExtractor,
		XmlBeanDefinitionReader reader, NamespaceHandlerResolver namespaceHandlerResolver) {

	super(resource, problemReporter, eventListener, sourceExtractor);
	this.reader = reader;
	this.namespaceHandlerResolver = namespaceHandlerResolver;
}
 
Example 3
Source Project: lams   Source File: XmlReaderContext.java    License: GNU General Public License v2.0 5 votes vote down vote up
public XmlReaderContext(
		Resource resource, ProblemReporter problemReporter,
		ReaderEventListener eventListener, SourceExtractor sourceExtractor,
		XmlBeanDefinitionReader reader, NamespaceHandlerResolver namespaceHandlerResolver) {

	super(resource, problemReporter, eventListener, sourceExtractor);
	this.reader = reader;
	this.namespaceHandlerResolver = namespaceHandlerResolver;
}
 
Example 4
Source Project: blog_demos   Source File: XmlReaderContext.java    License: Apache License 2.0 5 votes vote down vote up
public XmlReaderContext(
		Resource resource, ProblemReporter problemReporter,
		ReaderEventListener eventListener, SourceExtractor sourceExtractor,
		XmlBeanDefinitionReader reader, NamespaceHandlerResolver namespaceHandlerResolver) {

	super(resource, problemReporter, eventListener, sourceExtractor);
	this.reader = reader;
	this.namespaceHandlerResolver = namespaceHandlerResolver;
}
 
Example 5
Source Project: spring4-understanding   Source File: XmlReaderContext.java    License: Apache License 2.0 5 votes vote down vote up
public XmlReaderContext(
		Resource resource, ProblemReporter problemReporter,
		ReaderEventListener eventListener, SourceExtractor sourceExtractor,
		XmlBeanDefinitionReader reader, NamespaceHandlerResolver namespaceHandlerResolver) {

	super(resource, problemReporter, eventListener, sourceExtractor);
	this.reader = reader;
	this.namespaceHandlerResolver = namespaceHandlerResolver;
}
 
Example 6
Source Project: spring-analysis-note   Source File: XmlBeanDefinitionReader.java    License: MIT License 2 votes vote down vote up
/**
 * Specify which {@link ReaderEventListener} to use.
 * <p>The default implementation is EmptyReaderEventListener which discards every event notification.
 * External tools can provide an alternative implementation to monitor the components being
 * registered in the BeanFactory.
 */
public void setEventListener(@Nullable ReaderEventListener eventListener) {
	this.eventListener = (eventListener != null ? eventListener : new EmptyReaderEventListener());
}
 
Example 7
Source Project: java-technology-stack   Source File: XmlBeanDefinitionReader.java    License: MIT License 2 votes vote down vote up
/**
 * Specify which {@link ReaderEventListener} to use.
 * <p>The default implementation is EmptyReaderEventListener which discards every event notification.
 * External tools can provide an alternative implementation to monitor the components being
 * registered in the BeanFactory.
 */
public void setEventListener(@Nullable ReaderEventListener eventListener) {
	this.eventListener = (eventListener != null ? eventListener : new EmptyReaderEventListener());
}
 
Example 8
Source Project: lams   Source File: XmlBeanDefinitionReader.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Specify which {@link ReaderEventListener} to use.
 * <p>The default implementation is EmptyReaderEventListener which discards every event notification.
 * External tools can provide an alternative implementation to monitor the components being
 * registered in the BeanFactory.
 */
public void setEventListener(ReaderEventListener eventListener) {
	this.eventListener = (eventListener != null ? eventListener : new EmptyReaderEventListener());
}
 
Example 9
Source Project: blog_demos   Source File: XmlBeanDefinitionReader.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Specify which {@link ReaderEventListener} to use.
 * <p>The default implementation is EmptyReaderEventListener which discards every event notification.
 * External tools can provide an alternative implementation to monitor the components being
 * registered in the BeanFactory.
 */
public void setEventListener(ReaderEventListener eventListener) {
	this.eventListener = (eventListener != null ? eventListener : new EmptyReaderEventListener());
}
 
Example 10
/**
 * Specify which {@link ReaderEventListener} to use.
 * <p>The default implementation is EmptyReaderEventListener which discards every event notification.
 * External tools can provide an alternative implementation to monitor the components being
 * registered in the BeanFactory.
 */
public void setEventListener(ReaderEventListener eventListener) {
	this.eventListener = (eventListener != null ? eventListener : new EmptyReaderEventListener());
}