org.sonar.api.batch
Interface ResourceCreationLock

All Superinterfaces:
BatchComponent

public interface ResourceCreationLock
extends BatchComponent

This lock is used to ensure that Sonar resources (files, packages, directories) are not created by buggy plugins when saving measures/violations on unknown resources.

Since:
2.3

Method Summary
 void lock()
          Forbids the creation of resources when saving violations and measures.
 

Method Detail

lock

void lock()
Forbids the creation of resources when saving violations and measures. By default it's unlocked, so only warnings are logged. When locked, then an exception is thrown.



Copyright © 2009-2014 SonarSource. All Rights Reserved.