use of org.robolectric.annotation.processing.generator.ServiceLoaderGenerator in project robolectric by robolectric.
the class RobolectricProcessor method init.
@Override
public void init(ProcessingEnvironment environment) {
super.init(environment);
processOptions(environment.getOptions());
model = new RobolectricModel(environment.getElementUtils(), environment.getTypeUtils());
addValidator(new ImplementationValidator(model, environment));
addValidator(new ImplementsValidator(model, environment));
addValidator(new RealObjectValidator(model, environment));
addValidator(new ResetterValidator(model, environment));
generators.add(new ShadowProviderGenerator(model, environment, shouldInstrumentPackages));
generators.add(new ServiceLoaderGenerator(model, environment));
}
Aggregations