diff options
author | Godin <mandrikov@gmail.com> | 2010-10-18 09:46:05 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-10-18 09:46:05 +0000 |
commit | 41adff1a4c4a80d57f6c6ff69b4aa22e58c99416 (patch) | |
tree | a9362dab64b155262d0c110f4873457e09bcd774 /sonar-core | |
parent | 32548122e4fe39cb79a2b1c13bfc5ab751a88290 (diff) | |
download | sonarqube-41adff1a4c4a80d57f6c6ff69b4aa22e58c99416.tar.gz sonarqube-41adff1a4c4a80d57f6c6ff69b4aa22e58c99416.zip |
SONAR-1838: Change naming convention for exported packages
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/classloaders/ClassLoadersCollection.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/classloaders/ClassLoadersCollection.java b/sonar-core/src/main/java/org/sonar/core/classloaders/ClassLoadersCollection.java index eed29008bf7..dae961bba93 100644 --- a/sonar-core/src/main/java/org/sonar/core/classloaders/ClassLoadersCollection.java +++ b/sonar-core/src/main/java/org/sonar/core/classloaders/ClassLoadersCollection.java @@ -13,18 +13,14 @@ import java.util.Arrays; import java.util.Collection; /** - * EXPERIMENTAL! - * * Encapsulates manipulations with ClassLoaders, such as creation and establishing dependencies. * Current implementation based on {@link ClassWorld}. * * <h3>IMPORTANT</h3> - * <ul> - * <li>If we have pluginA , then all classes and resources from packages and subpackages of org.sonar.plugins.pluginA will be visible for - * all other plugins.</li> - * <li>If pluginA depends on lib.jar which contains org.sonar.plugins.pluginA.SomeClass , then SomeClass will be visible for all other - * plugins.</li> - * </ul> + * <p> + * If we have pluginA , then all classes and resources from package and subpackages of <b>org.sonar.plugins.pluginA.api</b> will be visible + * for all other plugins even if they located in dependent library. + * </p> * * @since 2.4 */ @@ -76,7 +72,7 @@ public class ClassLoadersCollection { String[] packagesToExport = new String[PREFIXES_TO_EXPORT.length]; for (int i = 0; i < PREFIXES_TO_EXPORT.length; i++) { // important to have dot at the end of package name - packagesToExport[i] = PREFIXES_TO_EXPORT[i] + realm.getId() + "."; + packagesToExport[i] = PREFIXES_TO_EXPORT[i] + realm.getId() + ".api."; } export(realm, packagesToExport); } |