blob: 57b4eaa6479525d86d764e4c1621e824fab78a20 [file] [log] [blame]
package org.junit.runner;
import org.junit.runner.manipulation.Filter;
/**
* Extend this class to create a factory that creates {@link Filter}.
*/
public interface FilterFactory {
/**
* Creates a {@link Filter} given a {@link FilterFactoryParams} argument.
*
* @param params Parameters needed to create the {@link Filter}
*/
Filter createFilter(FilterFactoryParams params) throws FilterNotCreatedException;
/**
* Exception thrown if the {@link Filter} cannot be created.
*/
public static class FilterNotCreatedException extends Exception {
public FilterNotCreatedException(Exception exception) {
super(exception.getMessage(), exception);
}
}
}