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

The following examples show how to use org.springframework.beans.factory.parsing.ReaderEventListener. 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: XmlReaderContext.java    From spring-analysis-note with 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 File: XmlReaderContext.java    From java-technology-stack with 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 File: XmlReaderContext.java    From lams with 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 File: XmlReaderContext.java    From blog_demos with 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 File: XmlReaderContext.java    From spring4-understanding with 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 File: XmlBeanDefinitionReader.java    From spring-analysis-note with 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 File: XmlBeanDefinitionReader.java    From java-technology-stack with 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 File: XmlBeanDefinitionReader.java    From lams with 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 File: XmlBeanDefinitionReader.java    From blog_demos with 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
Source File: XmlBeanDefinitionReader.java    From spring4-understanding with 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());
}