d87bcc5ab550fbd0acaf37ed32b8f725db183197
[JavaForFun] /
1 package de.example.plugins.custom.java;
2
3 import org.sonar.api.Plugin;
4
5 import com.google.common.collect.ImmutableList;
6
7
8 public class CustomPlugin implements Plugin {
9
10   @Override
11   public void define(Context context) {    
12     
13     ImmutableList.Builder<Object> builder = ImmutableList.builder();
14     builder.add(
15                 CustomRulesDefinition.class,
16                 CustomRulesCheckRegistrar.class,
17                 CustomProfile.class,
18                 CustomSensor.class);
19     
20     context.addExtensions(builder.build());
21   }
22 }