Extract ProblemCollector interface

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3959 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Chris Beams
2011-02-08 19:07:03 +00:00
parent 0620860078
commit 9fd86f589f
11 changed files with 55 additions and 19 deletions
@@ -16,7 +16,7 @@
package org.springframework.transaction.config;
import org.springframework.beans.factory.parsing.SimpleProblemCollector;
import org.springframework.beans.factory.parsing.ProblemCollector;
import org.springframework.context.config.AbstractFeatureSpecification;
import org.springframework.context.config.AdviceMode;
import org.springframework.context.config.FeatureSpecificationExecutor;
@@ -187,7 +187,7 @@ public final class TxAnnotationDriven extends AbstractFeatureSpecification {
}
@Override
protected void doValidate(SimpleProblemCollector problems) {
protected void doValidate(ProblemCollector problems) {
if (this.mode instanceof String) {
if (!ObjectUtils.containsConstant(AdviceMode.values(), (String)this.mode)) {
problems.error("no such mode name: " + this.mode);