public static class Plugin.Context extends Object
| Constructor and Description | 
|---|
| Context(SonarRuntime sonarRuntime) | 
| Modifier and Type | Method and Description | 
|---|---|
| Plugin.Context | addExtension(Object extension) | 
| Plugin.Context | addExtensions(Collection extensions) | 
| Plugin.Context | addExtensions(Object first,
             Object second,
             Object... others) | 
| List | getExtensions() | 
| SonarRuntime | getRuntime()Runtime environment. | 
| Version | getSonarQubeVersion()Shortcut on  getRuntime().getApiVersion()since version 6.0. | 
public Context(SonarRuntime sonarRuntime)
public Version getSonarQubeVersion()
getRuntime().getApiVersion() since version 6.0.getRuntime()public SonarRuntime getRuntime()
public Plugin.Context addExtension(Object extension)
ScannerSide, ServerSide
   or ComputeEngineSide. The extension will be instantiated once. Its dependencies are
   injected through constructor parameters.ScannerSide, ServerSide
   or ComputeEngineSide.public Plugin.Context addExtensions(Collection extensions)
addExtension(Object)public Plugin.Context addExtensions(Object first, Object second, Object... others)
addExtension(Object)public List getExtensions()
Copyright © 2009–2016 SonarSource. All rights reserved.