• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java FailFastProblemReporter类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.springframework.beans.factory.parsing.FailFastProblemReporter的典型用法代码示例。如果您正苦于以下问题:Java FailFastProblemReporter类的具体用法?Java FailFastProblemReporter怎么用?Java FailFastProblemReporter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

FailFastProblemReporter类属于org.springframework.beans.factory.parsing包,在下文中一共展示了FailFastProblemReporter类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: newParser

点赞 2

import org.springframework.beans.factory.parsing.FailFastProblemReporter; //导入依赖的package包/类
@Override
protected ConfigurationClassParser newParser() {
	return new ConfigurationClassParser(
			new CachingMetadataReaderFactory(),
			new FailFastProblemReporter(),
			new StandardEnvironment(),
			new DefaultResourceLoader(),
			new AnnotationBeanNameGenerator(),
			new DefaultListableBeanFactory());
}
 

开发者ID:langtianya,
项目名称:spring4-understanding,
代码行数:11,
代码来源:AsmCircularImportDetectionTests.java

示例2: setProblemReporter

点赞 1

import org.springframework.beans.factory.parsing.FailFastProblemReporter; //导入依赖的package包/类
/**
 * 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());
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:10,
代码来源:ConfigurationClassPostProcessor.java

示例3: setProblemReporter

点赞 1

import org.springframework.beans.factory.parsing.FailFastProblemReporter; //导入依赖的package包/类
/**
 * 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());
}
 

开发者ID:lamsfoundation,
项目名称:lams,
代码行数:10,
代码来源:XmlBeanDefinitionReader.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)