Details
Description
It should be retrieved as an IoC dependency - see javadocs for Sonar Plugin API 2.5.
Moreover you should never directly instantiate classes which implements BatchComponent or ServerComponent , because they should be retrieved as an IoC dependency. Otherwise it leads to issues with backward compatibility - see wiki page "Coding a plugin".