Validation of the reducer factories is now called from within the AggregatorFactories

This commit is contained in:
Colin Goodheart-Smithe 2015-02-13 14:33:44 +00:00
parent 0f22d7e65e
commit 18c2cb64b7
2 changed files with 4 additions and 1 deletions

View File

@ -106,6 +106,9 @@ public class AggregatorFactories {
for (AggregatorFactory factory : factories) { for (AggregatorFactory factory : factories) {
factory.validate(); factory.validate();
} }
for (ReducerFactory factory : reducerFactories) {
factory.validate();
}
} }
private final static class Empty extends AggregatorFactories { private final static class Empty extends AggregatorFactories {

View File

@ -49,7 +49,7 @@ public abstract class ReducerFactory {
/** /**
* Validates the state of this factory (makes sure the factory is properly configured) * Validates the state of this factory (makes sure the factory is properly configured)
*/ */
public final void validate() { // NOCOMMIT hook in validation public final void validate() {
doValidate(); doValidate();
} }