@Beta
public interface CheckRegistrar
extends org.sonar.api.BatchExtension
public void register(RegistrarContext registrarContext) {
registrarContext.registerClassesForRepository("RepositoryKey", listOfCheckClasses);
}
Modifier and Type | Interface and Description |
---|---|
static class |
CheckRegistrar.RegistrarContext |
Modifier and Type | Method and Description |
---|---|
void |
register(CheckRegistrar.RegistrarContext registrarContext)
This method is called during an analysis to get the classes to use to instantiate checks.
|
void register(CheckRegistrar.RegistrarContext registrarContext)
registrarContext
- the context that will be used by the java-plugin to retrieve the classes for checks.Copyright © 2012–2016 SonarSource. All rights reserved.