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

The following examples show how to use org.springframework.beans.factory.parsing.FailFastProblemReporter. 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: AsmCircularImportDetectionTests.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Override
protected ConfigurationClassParser newParser() {
	return new ConfigurationClassParser(
			new CachingMetadataReaderFactory(),
			new FailFastProblemReporter(),
			new StandardEnvironment(),
			new DefaultResourceLoader(),
			new AnnotationBeanNameGenerator(),
			new DefaultListableBeanFactory());
}
 
Example #2
Source File: AsmCircularImportDetectionTests.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Override
protected ConfigurationClassParser newParser() {
	return new ConfigurationClassParser(
			new CachingMetadataReaderFactory(),
			new FailFastProblemReporter(),
			new StandardEnvironment(),
			new DefaultResourceLoader(),
			new AnnotationBeanNameGenerator(),
			new DefaultListableBeanFactory());
}
 
Example #3
Source File: AsmCircularImportDetectionTests.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@Override
protected ConfigurationClassParser newParser() {
	return new ConfigurationClassParser(
			new CachingMetadataReaderFactory(),
			new FailFastProblemReporter(),
			new StandardEnvironment(),
			new DefaultResourceLoader(),
			new AnnotationBeanNameGenerator(),
			new DefaultListableBeanFactory());
}
 
Example #4
Source File: ConfigurationClassPostProcessor.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Set the {@link ProblemReporter} to use.
 * <p>Used to register any problems detected with {@link Configuration} or {@link Bean}
 * declarations. For instance, an @Bean method marked as {@code final} is illegal
 * and would be reported as a problem. Defaults to {@link FailFastProblemReporter}.
 */
public void setProblemReporter(@Nullable ProblemReporter problemReporter) {
	this.problemReporter = (problemReporter != null ? problemReporter : new FailFastProblemReporter());
}
 
Example #5
Source File: XmlBeanDefinitionReader.java    From spring-analysis-note with MIT License 2 votes vote down vote up
/**
 * Specify which {@link org.springframework.beans.factory.parsing.ProblemReporter} to use.
 * <p>The default implementation is {@link org.springframework.beans.factory.parsing.FailFastProblemReporter}
 * which exhibits fail fast behaviour. External tools can provide an alternative implementation
 * that collates errors and warnings for display in the tool UI.
 */
public void setProblemReporter(@Nullable ProblemReporter problemReporter) {
	this.problemReporter = (problemReporter != null ? problemReporter : new FailFastProblemReporter());
}
 
Example #6
Source File: ConfigurationClassPostProcessor.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Set the {@link ProblemReporter} to use.
 * <p>Used to register any problems detected with {@link Configuration} or {@link Bean}
 * declarations. For instance, an @Bean method marked as {@code final} is illegal
 * and would be reported as a problem. Defaults to {@link FailFastProblemReporter}.
 */
public void setProblemReporter(@Nullable ProblemReporter problemReporter) {
	this.problemReporter = (problemReporter != null ? problemReporter : new FailFastProblemReporter());
}
 
Example #7
Source File: XmlBeanDefinitionReader.java    From java-technology-stack with MIT License 2 votes vote down vote up
/**
 * Specify which {@link org.springframework.beans.factory.parsing.ProblemReporter} to use.
 * <p>The default implementation is {@link org.springframework.beans.factory.parsing.FailFastProblemReporter}
 * which exhibits fail fast behaviour. External tools can provide an alternative implementation
 * that collates errors and warnings for display in the tool UI.
 */
public void setProblemReporter(@Nullable ProblemReporter problemReporter) {
	this.problemReporter = (problemReporter != null ? problemReporter : new FailFastProblemReporter());
}
 
Example #8
Source File: ConfigurationClassPostProcessor.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Set the {@link ProblemReporter} to use.
 * <p>Used to register any problems detected with {@link Configuration} or {@link Bean}
 * declarations. For instance, an @Bean method marked as {@code final} is illegal
 * and would be reported as a problem. Defaults to {@link FailFastProblemReporter}.
 */
public void setProblemReporter(ProblemReporter problemReporter) {
	this.problemReporter = (problemReporter != null ? problemReporter : new FailFastProblemReporter());
}
 
Example #9
Source File: XmlBeanDefinitionReader.java    From lams with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Specify which {@link org.springframework.beans.factory.parsing.ProblemReporter} to use.
 * <p>The default implementation is {@link org.springframework.beans.factory.parsing.FailFastProblemReporter}
 * which exhibits fail fast behaviour. External tools can provide an alternative implementation
 * that collates errors and warnings for display in the tool UI.
 */
public void setProblemReporter(ProblemReporter problemReporter) {
	this.problemReporter = (problemReporter != null ? problemReporter : new FailFastProblemReporter());
}
 
Example #10
Source File: XmlBeanDefinitionReader.java    From blog_demos with Apache License 2.0 2 votes vote down vote up
/**
 * Specify which {@link org.springframework.beans.factory.parsing.ProblemReporter} to use.
 * <p>The default implementation is {@link org.springframework.beans.factory.parsing.FailFastProblemReporter}
 * which exhibits fail fast behaviour. External tools can provide an alternative implementation
 * that collates errors and warnings for display in the tool UI.
 */
public void setProblemReporter(ProblemReporter problemReporter) {
	this.problemReporter = (problemReporter != null ? problemReporter : new FailFastProblemReporter());
}
 
Example #11
Source File: ConfigurationClassPostProcessor.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Set the {@link ProblemReporter} to use.
 * <p>Used to register any problems detected with {@link Configuration} or {@link Bean}
 * declarations. For instance, an @Bean method marked as {@code final} is illegal
 * and would be reported as a problem. Defaults to {@link FailFastProblemReporter}.
 */
public void setProblemReporter(ProblemReporter problemReporter) {
	this.problemReporter = (problemReporter != null ? problemReporter : new FailFastProblemReporter());
}
 
Example #12
Source File: XmlBeanDefinitionReader.java    From spring4-understanding with Apache License 2.0 2 votes vote down vote up
/**
 * Specify which {@link org.springframework.beans.factory.parsing.ProblemReporter} to use.
 * <p>The default implementation is {@link org.springframework.beans.factory.parsing.FailFastProblemReporter}
 * which exhibits fail fast behaviour. External tools can provide an alternative implementation
 * that collates errors and warnings for display in the tool UI.
 */
public void setProblemReporter(ProblemReporter problemReporter) {
	this.problemReporter = (problemReporter != null ? problemReporter : new FailFastProblemReporter());
}