Java源码示例:org.pitest.mutationtest.build.MutationInterceptorFactory
示例1public CompoundInterceptorFactory getInterceptor() {
final Collection<? extends MutationInterceptorFactory> interceptors = this.plugins
.findInterceptors();
final FeatureParser parser = new FeatureParser();
return new CompoundInterceptorFactory(parser.parseFeatures(this.options.getFeatures()), new ArrayList<>(interceptors));
}
public Collection<? extends MutationInterceptorFactory> findInterceptors() {
return ServiceLoader.load(MutationInterceptorFactory.class, this.loader);
}