diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2017-09-20 16:55:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-20 16:55:30 +0200 |
commit | 5916ee64d9c05a4f085f6f6562ed383ff3203e4a (patch) | |
tree | 0255541afe778984d2becf450ecbb90d97e595d7 | |
parent | b8cd3af90f8149e5003ea1db395d67b0fa8f7066 (diff) | |
download | pf4j-5916ee64d9c05a4f085f6f6562ed383ff3203e4a.tar.gz pf4j-5916ee64d9c05a4f085f6f6562ed383ff3203e4a.zip |
Change root package from ro.fortsoft.pf4j to org.pf4j (#168)
-rw-r--r-- | .travis.yml | 5 | ||||
-rw-r--r-- | README.md | 34 | ||||
-rw-r--r-- | demo/api/pom.xml | 4 | ||||
-rw-r--r-- | demo/api/src/main/java/org/pf4j/demo/api/Greeting.java (renamed from demo/api/src/main/java/ro/fortsoft/pf4j/demo/api/Greeting.java) | 4 | ||||
-rw-r--r-- | demo/app/pom.xml | 8 | ||||
-rw-r--r-- | demo/app/src/main/java/org/pf4j/demo/Boot.java (renamed from demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java) | 12 | ||||
-rw-r--r-- | demo/app/src/main/java/org/pf4j/demo/HowdyGreeting.java (renamed from demo/app/src/main/java/ro/fortsoft/pf4j/demo/HowdyGreeting.java) | 4 | ||||
-rw-r--r-- | demo/app/src/main/java/org/pf4j/demo/WhazzupGreeting.java (renamed from demo/app/src/main/java/ro/fortsoft/pf4j/demo/WhazzupGreeting.java) | 6 | ||||
-rw-r--r-- | demo/app/src/main/resources/META-INF/services/org.pf4j.demo.api.Greeting | 1 | ||||
-rw-r--r-- | demo/app/src/main/resources/META-INF/services/ro.fortsoft.pf4j.demo.api.Greeting | 1 | ||||
-rw-r--r-- | demo/app/src/main/resources/log4j.properties | 12 | ||||
-rw-r--r-- | demo/plugins/plugin1/plugin.properties | 2 | ||||
-rw-r--r-- | demo/plugins/plugin1/pom.xml | 4 | ||||
-rw-r--r-- | demo/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java (renamed from demo/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java) | 12 | ||||
-rw-r--r-- | demo/plugins/plugin2/plugin.properties | 2 | ||||
-rw-r--r-- | demo/plugins/plugin2/pom.xml | 4 | ||||
-rw-r--r-- | demo/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java (renamed from demo/plugins/plugin2/src/main/java/ro/fortsoft/pf4j/demo/hello/HelloPlugin.java) | 10 | ||||
-rw-r--r-- | demo/plugins/pom.xml | 6 | ||||
-rw-r--r-- | demo/pom.xml | 4 | ||||
-rw-r--r-- | demo_gradle/api/build.gradle | 6 | ||||
-rw-r--r-- | demo_gradle/api/src/main/java/org/pf4j/demo/api/Greeting.java (renamed from demo_gradle/api/src/main/java/ro/fortsoft/pf4j/demo/api/Greeting.java) | 6 | ||||
-rw-r--r-- | demo_gradle/app/build.gradle | 18 | ||||
-rw-r--r-- | demo_gradle/app/src/main/java/org/pf4j/demo/Boot.java (renamed from demo_gradle/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java) | 10 | ||||
-rw-r--r-- | demo_gradle/app/src/main/java/org/pf4j/demo/WhazzupGreeting.java (renamed from demo_gradle/app/src/main/java/ro/fortsoft/pf4j/demo/WhazzupGreeting.java) | 6 | ||||
-rw-r--r-- | demo_gradle/app/src/main/resources/log4j.properties | 6 | ||||
-rw-r--r-- | demo_gradle/build.gradle | 12 | ||||
-rw-r--r-- | demo_gradle/plugins/plugin1/build.gradle | 39 | ||||
-rw-r--r-- | demo_gradle/plugins/plugin1/plugin.properties | 2 | ||||
-rw-r--r-- | demo_gradle/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java (renamed from demo_gradle/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java) | 10 | ||||
-rw-r--r-- | demo_gradle/plugins/plugin2/build.gradle | 47 | ||||
-rw-r--r-- | demo_gradle/plugins/plugin2/plugin.properties | 2 | ||||
-rw-r--r-- | demo_gradle/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java (renamed from demo_gradle/plugins/plugin2/src/main/java/ro/fortsoft/pf4j/demo/hello/HelloPlugin.java) | 10 | ||||
-rw-r--r-- | demo_gradle/plugins/plugin3/build.gradle | 14 | ||||
-rw-r--r-- | demo_gradle/plugins/plugin3/src/main/kotlin/org/pf4j/demo/kotlin/KotlinPlugin.kt (renamed from demo_gradle/plugins/plugin3/src/main/kotlin/ro/fortsoft/pf4j/demo/kotlin/KotlinPlugin.kt) | 10 | ||||
-rw-r--r-- | demo_gradle/settings.gradle | 1 | ||||
-rw-r--r-- | pf4j/pom.xml | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java) | 4 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/AbstractPluginManager.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/AbstractPluginManager.java) | 4 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/BasePluginRepository.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/BasePluginRepository.java) | 4 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/CompoundPluginRepository.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/CompoundPluginRepository.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/DefaultExtensionFactory.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFactory.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/DefaultExtensionFinder.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFinder.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/DefaultPluginClasspath.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginClasspath.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/DefaultPluginDescriptorFinder.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginDescriptorFinder.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/DefaultPluginFactory.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginFactory.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/DefaultPluginLoader.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginLoader.java) | 4 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/DefaultPluginManager.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java) | 4 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/DefaultPluginRepository.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginRepository.java) | 18 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/DefaultPluginStatusProvider.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginStatusProvider.java) | 4 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/DefaultVersionManager.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/DefaultVersionManager.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/DependencyResolver.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/DependencyResolver.java) | 4 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/DevelopmentPluginClasspath.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/DevelopmentPluginClasspath.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/Extension.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/Extension.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/ExtensionDescriptor.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionDescriptor.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/ExtensionFactory.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFactory.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/ExtensionFinder.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFinder.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/ExtensionPoint.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionPoint.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/ExtensionWrapper.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionWrapper.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/JarPluginManager.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/JarPluginManager.java) | 18 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/LegacyExtensionFinder.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/LegacyExtensionFinder.java) | 4 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/ManifestPluginDescriptorFinder.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/ManifestPluginDescriptorFinder.java) | 4 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/Plugin.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/Plugin.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginClassLoader.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java) | 4 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginClasspath.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginClasspath.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginDependency.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginDependency.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginDescriptor.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptor.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginDescriptorFinder.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptorFinder.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginException.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginException.java) | 4 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginFactory.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginFactory.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginLoader.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginLoader.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginManager.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginRepository.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginRepository.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginState.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginState.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginStateEvent.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginStateEvent.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginStateListener.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginStateListener.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginStatusProvider.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginStatusProvider.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PluginWrapper.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PluginWrapper.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/PropertiesPluginDescriptorFinder.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinder.java) | 4 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/RuntimeMode.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/RuntimeMode.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/ServiceProviderExtensionFinder.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/ServiceProviderExtensionFinder.java) | 4 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/VersionManager.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/VersionManager.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionAnnotationProcessor.java) | 6 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/processor/ExtensionStorage.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionStorage.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/processor/LegacyExtensionStorage.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/processor/LegacyExtensionStorage.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/processor/ServiceProviderExtensionStorage.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/processor/ServiceProviderExtensionStorage.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/AndFileFilter.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/AndFileFilter.java) | 3 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/ClassUtils.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/ClassUtils.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/DirectedGraph.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/DirectedGraph.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/DirectoryFileFilter.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/DirectoryFileFilter.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/ExtensionFileFilter.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/ExtensionFileFilter.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/FileUtils.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/FileUtils.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/HiddenFilter.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/HiddenFilter.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/JarFileFilter.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/JarFileFilter.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/NameFileFilter.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/NameFileFilter.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/NotFileFilter.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/NotFileFilter.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/OrFileFilter.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/OrFileFilter.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/StringUtils.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/StringUtils.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/Unzip.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/Unzip.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/java/org/pf4j/util/ZipFileFilter.java (renamed from pf4j/src/main/java/ro/fortsoft/pf4j/util/ZipFileFilter.java) | 2 | ||||
-rw-r--r-- | pf4j/src/main/resources/META-INF/services/javax.annotation.processing.Processor | 2 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/AbstractExtensionFinderTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/AbstractExtensionFinderTest.java) | 22 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/DefaultExtensionFactoryTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DefaultExtensionFactoryTest.java) | 6 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/DefaultPluginFactoryTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginFactoryTest.java) | 10 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/DefaultPluginManagerTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginManagerTest.java) | 2 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/DefaultPluginRepositoryTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginRepositoryTest.java) | 2 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/DefaultPluginStatusProviderTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginStatusProviderTest.java) | 4 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/DefaultVersionManagerTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DefaultVersionManagerTest.java) | 2 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/DependencyResolverTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/DependencyResolverTest.java) | 2 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/ExtensionAnnotationProcessorTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/ExtensionAnnotationProcessorTest.java) | 4 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/LegacyExtensionStorageTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/LegacyExtensionStorageTest.java) | 10 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/LoadPluginsTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/LoadPluginsTest.java) | 6 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/ManifestPluginDescriptorFinderTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/ManifestPluginDescriptorFinderTest.java) | 34 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/PluginDependencyTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/PluginDependencyTest.java) | 2 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/PropertiesPluginDescriptorFinderTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinderTest.java) | 14 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/plugin/AnotherFailTestPlugin.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/AnotherFailTestPlugin.java) | 4 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/plugin/FailTestExtension.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/FailTestExtension.java) | 4 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/plugin/FailTestPlugin.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/FailTestPlugin.java) | 2 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/plugin/MockPluginManager.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/MockPluginManager.java) | 10 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/plugin/TestExtension.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtension.java) | 4 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/plugin/TestExtensionPoint.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtensionPoint.java) | 4 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/plugin/TestPlugin.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestPlugin.java) | 6 | ||||
-rw-r--r-- | pf4j/src/test/java/org/pf4j/util/FileUtilsTest.java (renamed from pf4j/src/test/java/ro/fortsoft/pf4j/util/FileUtilsTest.java) | 2 | ||||
-rw-r--r-- | pf4j/src/test/resources/log4j.properties | 12 | ||||
-rw-r--r-- | pom.xml | 2 |
124 files changed, 350 insertions, 347 deletions
diff --git a/.travis.yml b/.travis.yml index 01f65da..6856742 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,8 @@ language: java jdk: - - oraclejdk7 + - openjdk7 +# JDK7 is not supported anymore; https://github.com/travis-ci/travis-ci/issues/7884#issuecomment-308451879 +# - oraclejdk7 + - oraclejdk8 after_success: - mvn clean cobertura:cobertura coveralls:report @@ -5,12 +5,12 @@ Plugin Framework for Java (PF4J) [![Join the chat at https://gitter.im/decebals/pf4j](https://badges.gitter.im/decebals/pf4j.svg)](https://gitter.im/decebals/pf4j?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Travis CI Build Status](https://travis-ci.org/decebals/pf4j.png)](https://travis-ci.org/decebals/pf4j) [![Coverage Status](https://coveralls.io/repos/decebals/pf4j/badge.svg?branch=master&service=github)](https://coveralls.io/github/decebals/pf4j?branch=master) -[![Maven Central](http://img.shields.io/maven-central/v/ro.fortsoft.pf4j/pf4j.svg)](http://search.maven.org/#search|ga|1|pf4j) +[![Maven Central](http://img.shields.io/maven-central/v/org.pf4j/pf4j.svg)](http://search.maven.org/#search|ga|1|pf4j) A plugin is a way for a third party to extend the functionality of an application. A plugin implements extension points declared by application or other plugins. Also a plugin can define extension points. -**NOTE:** Starting with version 0.9 you can define an extension directly in the application jar (you're not obligated to put the extension in a plugin - you can see this extension as a default/system extension). See [WhazzupGreeting](https://github.com/decebals/pf4j/blob/master/demo/app/src/main/java/ro/fortsoft/pf4j/demo/WhazzupGreeting.java) for a real example. +**NOTE:** Starting with version 0.9 you can define an extension directly in the application jar (you're not obligated to put the extension in a plugin - you can see this extension as a default/system extension). See [WhazzupGreeting](https://github.com/decebals/pf4j/blob/master/demo/app/src/main/java/org/pf4j/demo/WhazzupGreeting.java) for a real example. Features/Benefits ------------------- @@ -50,7 +50,7 @@ In your pom.xml you must define the dependencies to PF4J artifacts with: ```xml <dependency> - <groupId>ro.fortsoft.pf4j</groupId> + <groupId>org.pf4j</groupId> <artifactId>pf4j</artifactId> <version>${pf4j.version}</version> </dependency> @@ -119,14 +119,14 @@ Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: decebal Build-Jdk: 1.6.0_17 -Plugin-Class: ro.fortsoft.pf4j.demo.welcome.WelcomePlugin +Plugin-Class: org.pf4j.demo.welcome.WelcomePlugin Plugin-Dependencies: x, y, z Plugin-Id: welcome-plugin Plugin-Provider: Decebal Suiu Plugin-Version: 0.0.1 ``` -In above manifest I described a plugin with id `welcome-plugin`, with class `ro.fortsoft.pf4j.demo.welcome.WelcomePlugin`, with version `0.0.1` and with dependencies +In above manifest I described a plugin with id `welcome-plugin`, with class `org.pf4j.demo.welcome.WelcomePlugin`, with version `0.0.1` and with dependencies to plugins `x, y, z`. **NOTE:** The plugin version must be compliant with [Semantic Versioning](http://semver.org) (PF4J uses `jsemver` as implementation for SemVer because it comes with support for comparing versions) @@ -195,7 +195,7 @@ protected PluginDescriptorFinder createPluginDescriptorFinder() { and in plugin repository you must have a plugin.properties file with the below content: ``` -plugin.class=ro.fortsoft.pf4j.demo.welcome.WelcomePlugin +plugin.class=org.pf4j.demo.welcome.WelcomePlugin plugin.dependencies=x, y, z plugin.id=welcome-plugin plugin.provider=Decebal Suiu @@ -219,7 +219,7 @@ The `maven-compiler-plugin` can be configured to do this like so: <version>2.5.1</version> <configuration> <annotationProcessors> - <annotationProcessor>ro.fortsoft.pf4j.processor.ExtensionAnnotationProcessor</annotationProcessor> + <annotationProcessor>org.pf4j.processor.ExtensionAnnotationProcessor</annotationProcessor> </annotationProcessors> </configuration> </plugin> @@ -240,7 +240,7 @@ If you use `apache ant` then your build.xml file must looks like [this](https:// Plugin lifecycle -------------------------- -Each plugin passes through a pre-defined set of states. [PluginState](https://github.com/decebals/pf4j/blob/master/pf4j/src/main/java/ro/fortsoft/pf4j/PluginState.java) defines all possible states. +Each plugin passes through a pre-defined set of states. [PluginState](https://github.com/decebals/pf4j/blob/master/pf4j/src/main/java/org/pf4j/PluginState.java) defines all possible states. The primary plugin states are: * CREATED * DISABLED @@ -342,7 +342,7 @@ Lets describe how DEVELOPMENT runtime mode works. First, you can change the runtime mode using the "pf4j.mode" system property or overriding `DefaultPluginManager.getRuntimeMode()`. For example I run the pf4j demo in eclipse in DEVELOPMENT mode adding only `"-Dpf4j.mode=development"` to the pf4j demo launcher. -You can retrieve the current runtime mode using `PluginManager.getRuntimeMode()` or in your Plugin implementation with `getWrapper().getRuntimeMode()`(see [WelcomePlugin](https://github.com/decebals/pf4j/blob/master/demo/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java)). +You can retrieve the current runtime mode using `PluginManager.getRuntimeMode()` or in your Plugin implementation with `getWrapper().getRuntimeMode()`(see [WelcomePlugin](https://github.com/decebals/pf4j/blob/master/demo/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java)). The DefaultPluginManager determines automatically the correct runtime mode and for DEVELOPMENT mode overrides some components(pluginsDirectory is __"../plugins"__, __PropertiesPluginDescriptorFinder__ as PluginDescriptorFinder, __DevelopmentPluginClasspath__ as PluginClassPath). Another advantage of DEVELOPMENT runtime mode is that you can execute some code lines only in this mode (for example more debug messages). @@ -394,7 +394,7 @@ Default/System extension ------------------- Starting with version 0.9 you can define an extension directly in the application jar (you're not obligated to put the extension in a plugin - you can see this extension as a default/system extension). -See [WhazzupGreeting](https://github.com/decebals/pf4j/blob/master/demo/app/src/main/java/ro/fortsoft/pf4j/demo/WhazzupGreeting.java) +See [WhazzupGreeting](https://github.com/decebals/pf4j/blob/master/demo/app/src/main/java/org/pf4j/demo/WhazzupGreeting.java) for a real example. This is great for starting application phase. In this scenario you have a minimalist plugin framework with one class loader @@ -441,20 +441,20 @@ calls from your application with `PluginManager.getExtensions()` and migrate smo Also you have the possibility to change the `ExtensionStorage` used in `ExtensionAnnotationProcessor`. By default we use the format with `META-INF/extensions.idx` ``` -ro.fortsoft.pf4j.demo.HowdyGreeting -ro.fortsoft.pf4j.demo.WhazzupGreeting +org.pf4j.demo.HowdyGreeting +org.pf4j.demo.WhazzupGreeting ``` but you can use a more standard location and format, `META-INF/services/<extension-point>`, used by Java Service Provider (see `java.util.ServiceLoader`) via `ServiceProviderExtensionStorage` implementation. -In this case the format of `META-INF/services/ro.fortsoft.pf4j.demo.api.Greeting` is +In this case the format of `META-INF/services/org.pf4j.demo.api.Greeting` is ``` # Generated by PF4J -ro.fortsoft.pf4j.demo.HowdyGreeting -ro.fortsoft.pf4j.demo.WhazzupGreeting # pf4j extension +org.pf4j.demo.HowdyGreeting +org.pf4j.demo.WhazzupGreeting # pf4j extension ``` -where the `ro.fortsoft.pf4j.demo.HowdyGreeting` entry is legacy (it's not generated by PF4J) but it's seen as +where the `org.pf4j.demo.HowdyGreeting` entry is legacy (it's not generated by PF4J) but it's seen as an extension of `Greeting` by PF4J (at runtime). You can plug your custom `ExtensionStorage` implementation in `ExtensionAnnotationProcessor` in two possible modes: @@ -462,7 +462,7 @@ You can plug your custom `ExtensionStorage` implementation in `ExtensionAnnotati - set the system property with key `pf4j.storageClassName` For example if I want to use `ServiceProviderExtensionStorage` then the value for the `pf4j.storageClassName` key must be -`ro.fortsoft.pf4j.processor.ServiceProviderExtensionStorage` +`org.pf4j.processor.ServiceProviderExtensionStorage` **NOTE:** `ServiceLoaderExtensionFinder`, the class that lookups for extensions stored in `META-INF/services` folder, is not added/enabled by default. To do this please override `createExtensionFinder` from `DefaultPluginManager`: diff --git a/demo/api/pom.xml b/demo/api/pom.xml index a031848..11f4cad 100644 --- a/demo/api/pom.xml +++ b/demo/api/pom.xml @@ -2,7 +2,7 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <groupId>ro.fortsoft.pf4j.demo</groupId> + <groupId>org.pf4j.demo</groupId> <artifactId>pf4j-demo-parent</artifactId> <version>1.4.0-SNAPSHOT</version> </parent> @@ -26,7 +26,7 @@ <dependencies> <dependency> - <groupId>ro.fortsoft.pf4j</groupId> + <groupId>org.pf4j</groupId> <artifactId>pf4j</artifactId> <version>${project.version}</version> <!-- !!! VERY IMPORTANT --> diff --git a/demo/api/src/main/java/ro/fortsoft/pf4j/demo/api/Greeting.java b/demo/api/src/main/java/org/pf4j/demo/api/Greeting.java index bdf2fd4..1e4a767 100644 --- a/demo/api/src/main/java/ro/fortsoft/pf4j/demo/api/Greeting.java +++ b/demo/api/src/main/java/org/pf4j/demo/api/Greeting.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.demo.api; +package org.pf4j.demo.api; -import ro.fortsoft.pf4j.ExtensionPoint; +import org.pf4j.ExtensionPoint; /** * @author Decebal Suiu diff --git a/demo/app/pom.xml b/demo/app/pom.xml index b24e568..27b2afc 100644 --- a/demo/app/pom.xml +++ b/demo/app/pom.xml @@ -2,7 +2,7 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <groupId>ro.fortsoft.pf4j.demo</groupId> + <groupId>org.pf4j.demo</groupId> <artifactId>pf4j-demo-parent</artifactId> <version>1.4.0-SNAPSHOT</version> </parent> @@ -14,7 +14,7 @@ <name>Demo App</name> <properties> - <main.class>ro.fortsoft.pf4j.demo.Boot</main.class> + <main.class>org.pf4j.demo.Boot</main.class> <slf4j.version>1.7.5</slf4j.version> </properties> @@ -68,13 +68,13 @@ <dependencies> <dependency> - <groupId>ro.fortsoft.pf4j</groupId> + <groupId>org.pf4j</groupId> <artifactId>pf4j</artifactId> <version>${project.version}</version> </dependency> <dependency> - <groupId>ro.fortsoft.pf4j.demo</groupId> + <groupId>org.pf4j.demo</groupId> <artifactId>pf4j-demo-api</artifactId> <version>${project.version}</version> </dependency> diff --git a/demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java b/demo/app/src/main/java/org/pf4j/demo/Boot.java index c9738eb..76145a4 100644 --- a/demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java +++ b/demo/app/src/main/java/org/pf4j/demo/Boot.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.demo; +package org.pf4j.demo; import java.util.List; import java.util.Set; import org.apache.commons.lang.StringUtils; -import ro.fortsoft.pf4j.DefaultPluginManager; -import ro.fortsoft.pf4j.JarPluginManager; -import ro.fortsoft.pf4j.PluginManager; -import ro.fortsoft.pf4j.PluginWrapper; -import ro.fortsoft.pf4j.demo.api.Greeting; +import org.pf4j.PluginManager; +import org.pf4j.PluginWrapper; +import org.pf4j.demo.api.Greeting; +import org.pf4j.DefaultPluginManager; +import org.pf4j.JarPluginManager; /** * A boot class that start the demo. diff --git a/demo/app/src/main/java/ro/fortsoft/pf4j/demo/HowdyGreeting.java b/demo/app/src/main/java/org/pf4j/demo/HowdyGreeting.java index 3d7d24b..51888b8 100644 --- a/demo/app/src/main/java/ro/fortsoft/pf4j/demo/HowdyGreeting.java +++ b/demo/app/src/main/java/org/pf4j/demo/HowdyGreeting.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.demo; +package org.pf4j.demo; -import ro.fortsoft.pf4j.demo.api.Greeting; +import org.pf4j.demo.api.Greeting; /** * A Service Implementation (no @Extension) declared via Java Service Provider mechanism (using META-INF/services). diff --git a/demo/app/src/main/java/ro/fortsoft/pf4j/demo/WhazzupGreeting.java b/demo/app/src/main/java/org/pf4j/demo/WhazzupGreeting.java index e182f2a..c742127 100644 --- a/demo/app/src/main/java/ro/fortsoft/pf4j/demo/WhazzupGreeting.java +++ b/demo/app/src/main/java/org/pf4j/demo/WhazzupGreeting.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.demo; +package org.pf4j.demo; -import ro.fortsoft.pf4j.Extension; -import ro.fortsoft.pf4j.demo.api.Greeting; +import org.pf4j.Extension; +import org.pf4j.demo.api.Greeting; /** * @author Decebal Suiu diff --git a/demo/app/src/main/resources/META-INF/services/org.pf4j.demo.api.Greeting b/demo/app/src/main/resources/META-INF/services/org.pf4j.demo.api.Greeting new file mode 100644 index 0000000..615a943 --- /dev/null +++ b/demo/app/src/main/resources/META-INF/services/org.pf4j.demo.api.Greeting @@ -0,0 +1 @@ +org.pf4j.demo.HowdyGreeting diff --git a/demo/app/src/main/resources/META-INF/services/ro.fortsoft.pf4j.demo.api.Greeting b/demo/app/src/main/resources/META-INF/services/ro.fortsoft.pf4j.demo.api.Greeting deleted file mode 100644 index 4f8f4ad..0000000 --- a/demo/app/src/main/resources/META-INF/services/ro.fortsoft.pf4j.demo.api.Greeting +++ /dev/null @@ -1 +0,0 @@ -ro.fortsoft.pf4j.demo.HowdyGreeting diff --git a/demo/app/src/main/resources/log4j.properties b/demo/app/src/main/resources/log4j.properties index 692e39b..a05d9eb 100644 --- a/demo/app/src/main/resources/log4j.properties +++ b/demo/app/src/main/resources/log4j.properties @@ -3,13 +3,13 @@ log4j.rootLogger=DEBUG, Console # # PF4J log # -log4j.logger.ro.fortsoft.pf4j=DEBUG, Console +log4j.logger.org.pf4j=DEBUG, Console # !!! Put the bellow classes on level TRACE when you are in trouble -log4j.logger.ro.fortsoft.pf4j.PluginClassLoader=DEBUG, Console -log4j.logger.ro.fortsoft.pf4j.AbstractExtensionFinder=DEBUG, Console -log4j.additivity.ro.fortsoft.pf4j=false -log4j.additivity.ro.fortsoft.pf4j.PluginClassLoader=false -log4j.additivity.ro.fortsoft.pf4j.AbstractExtensionFinder=false +log4j.logger.org.pf4j.PluginClassLoader=DEBUG, Console +log4j.logger.org.pf4j.AbstractExtensionFinder=DEBUG, Console +log4j.additivity.org.pf4j=false +log4j.additivity.org.pf4j.PluginClassLoader=false +log4j.additivity.org.pf4j.AbstractExtensionFinder=false # # Appenders diff --git a/demo/plugins/plugin1/plugin.properties b/demo/plugins/plugin1/plugin.properties index 4f95d99..9da9bcc 100644 --- a/demo/plugins/plugin1/plugin.properties +++ b/demo/plugins/plugin1/plugin.properties @@ -1,5 +1,5 @@ plugin.id=welcome-plugin -plugin.class=ro.fortsoft.pf4j.demo.welcome.WelcomePlugin +plugin.class=org.pf4j.demo.welcome.WelcomePlugin plugin.version=0.0.1 plugin.provider=Decebal Suiu plugin.dependencies= diff --git a/demo/plugins/plugin1/pom.xml b/demo/plugins/plugin1/pom.xml index bf597d1..970788e 100644 --- a/demo/plugins/plugin1/pom.xml +++ b/demo/plugins/plugin1/pom.xml @@ -2,7 +2,7 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <groupId>ro.fortsoft.pf4j.demo</groupId> + <groupId>org.pf4j.demo</groupId> <artifactId>pf4j-demo-plugins</artifactId> <version>1.4.0-SNAPSHOT</version> </parent> @@ -15,7 +15,7 @@ <properties> <plugin.id>welcome-plugin</plugin.id> - <plugin.class>ro.fortsoft.pf4j.demo.welcome.WelcomePlugin</plugin.class> + <plugin.class>org.pf4j.demo.welcome.WelcomePlugin</plugin.class> <plugin.version>0.0.1</plugin.version> <plugin.provider>Decebal Suiu</plugin.provider> <plugin.dependencies /> diff --git a/demo/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java b/demo/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java index a944a6a..7ea2740 100644 --- a/demo/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java +++ b/demo/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.demo.welcome; +package org.pf4j.demo.welcome; import org.apache.commons.lang.StringUtils; -import ro.fortsoft.pf4j.Extension; -import ro.fortsoft.pf4j.Plugin; -import ro.fortsoft.pf4j.PluginWrapper; -import ro.fortsoft.pf4j.RuntimeMode; -import ro.fortsoft.pf4j.demo.api.Greeting; +import org.pf4j.PluginWrapper; +import org.pf4j.RuntimeMode; +import org.pf4j.demo.api.Greeting; +import org.pf4j.Extension; +import org.pf4j.Plugin; /** * @author Decebal Suiu diff --git a/demo/plugins/plugin2/plugin.properties b/demo/plugins/plugin2/plugin.properties index 0de45e6..60b6f33 100644 --- a/demo/plugins/plugin2/plugin.properties +++ b/demo/plugins/plugin2/plugin.properties @@ -1,5 +1,5 @@ plugin.id=hello-plugin -plugin.class=ro.fortsoft.pf4j.demo.hello.HelloPlugin +plugin.class=org.pf4j.demo.hello.HelloPlugin plugin.version=0.0.1 plugin.provider=Decebal Suiu plugin.dependencies= diff --git a/demo/plugins/plugin2/pom.xml b/demo/plugins/plugin2/pom.xml index 278949c..91d2dc7 100644 --- a/demo/plugins/plugin2/pom.xml +++ b/demo/plugins/plugin2/pom.xml @@ -2,7 +2,7 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <groupId>ro.fortsoft.pf4j.demo</groupId> + <groupId>org.pf4j.demo</groupId> <artifactId>pf4j-demo-plugins</artifactId> <version>1.4.0-SNAPSHOT</version> </parent> @@ -15,7 +15,7 @@ <properties> <plugin.id>hello-plugin</plugin.id> - <plugin.class>ro.fortsoft.pf4j.demo.hello.HelloPlugin</plugin.class> + <plugin.class>org.pf4j.demo.hello.HelloPlugin</plugin.class> <plugin.version>0.0.1</plugin.version> <plugin.provider>Decebal Suiu</plugin.provider> <plugin.dependencies /> diff --git a/demo/plugins/plugin2/src/main/java/ro/fortsoft/pf4j/demo/hello/HelloPlugin.java b/demo/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java index b5e5392..c6f1e52 100644 --- a/demo/plugins/plugin2/src/main/java/ro/fortsoft/pf4j/demo/hello/HelloPlugin.java +++ b/demo/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.demo.hello; +package org.pf4j.demo.hello; -import ro.fortsoft.pf4j.Extension; -import ro.fortsoft.pf4j.Plugin; -import ro.fortsoft.pf4j.PluginWrapper; -import ro.fortsoft.pf4j.demo.api.Greeting; +import org.pf4j.Extension; +import org.pf4j.Plugin; +import org.pf4j.PluginWrapper; +import org.pf4j.demo.api.Greeting; /** * A very simple plugin. diff --git a/demo/plugins/pom.xml b/demo/plugins/pom.xml index c385dcb..b8f262f 100644 --- a/demo/plugins/pom.xml +++ b/demo/plugins/pom.xml @@ -2,7 +2,7 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <groupId>ro.fortsoft.pf4j.demo</groupId> + <groupId>org.pf4j.demo</groupId> <artifactId>pf4j-demo-parent</artifactId> <version>1.4.0-SNAPSHOT</version> </parent> @@ -85,7 +85,7 @@ <dependencies> <dependency> - <groupId>ro.fortsoft.pf4j</groupId> + <groupId>org.pf4j</groupId> <artifactId>pf4j</artifactId> <version>${project.version}</version> <!-- !!! VERY IMPORTANT --> @@ -93,7 +93,7 @@ </dependency> <dependency> - <groupId>ro.fortsoft.pf4j.demo</groupId> + <groupId>org.pf4j.demo</groupId> <artifactId>pf4j-demo-api</artifactId> <version>${project.version}</version> <!-- !!! VERY IMPORTANT --> diff --git a/demo/pom.xml b/demo/pom.xml index 86a191a..b304fed 100644 --- a/demo/pom.xml +++ b/demo/pom.xml @@ -2,13 +2,13 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <groupId>ro.fortsoft.pf4j</groupId> + <groupId>org.pf4j</groupId> <artifactId>pf4j-parent</artifactId> <version>1.4.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> - <groupId>ro.fortsoft.pf4j.demo</groupId> + <groupId>org.pf4j.demo</groupId> <artifactId>pf4j-demo-parent</artifactId> <version>1.4.0-SNAPSHOT</version> <packaging>pom</packaging> diff --git a/demo_gradle/api/build.gradle b/demo_gradle/api/build.gradle index 774655d..616520e 100644 --- a/demo_gradle/api/build.gradle +++ b/demo_gradle/api/build.gradle @@ -1,5 +1,5 @@ dependencies { - compile 'ro.fortsoft.pf4j:pf4j:1.3.0' - compile 'org.apache.commons:commons-lang3:3.0' - testCompile group: 'junit', name: 'junit', version: '4.+' + compile 'org.pf4j:pf4j:1.4.0-SNAPSHOT' + compile 'org.apache.commons:commons-lang3:3.0' + testCompile group: 'junit', name: 'junit', version: '4.+' } diff --git a/demo_gradle/api/src/main/java/ro/fortsoft/pf4j/demo/api/Greeting.java b/demo_gradle/api/src/main/java/org/pf4j/demo/api/Greeting.java index c451b09..1e4a767 100644 --- a/demo_gradle/api/src/main/java/ro/fortsoft/pf4j/demo/api/Greeting.java +++ b/demo_gradle/api/src/main/java/org/pf4j/demo/api/Greeting.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.demo.api; +package org.pf4j.demo.api; -import ro.fortsoft.pf4j.ExtensionPoint; +import org.pf4j.ExtensionPoint; /** * @author Decebal Suiu */ public interface Greeting extends ExtensionPoint { - public String getGreeting(); + String getGreeting(); } diff --git a/demo_gradle/app/build.gradle b/demo_gradle/app/build.gradle index 2478937..cd473b6 100644 --- a/demo_gradle/app/build.gradle +++ b/demo_gradle/app/build.gradle @@ -1,16 +1,16 @@ -apply plugin:'application' +apply plugin: 'application' -mainClassName = 'ro.fortsoft.pf4j.demo.Boot' +mainClassName = 'org.pf4j.demo.Boot' dependencies { - compile project(':api') - compile 'ro.fortsoft.pf4j:pf4j:1.3.0' - compile 'org.apache.commons:commons-lang3:3.5' - testCompile group: 'junit', name: 'junit', version: '4.+' - compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25' + compile project(':api') + compile 'org.pf4j:pf4j:1.4.0-SNAPSHOT' + compile 'org.apache.commons:commons-lang3:3.5' + testCompile group: 'junit', name: 'junit', version: '4.+' + compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25' } jar { - baseName = 'Plugin Demo' - version = '0.1.0' + baseName = 'Plugin Demo' + version = '0.1.0' } diff --git a/demo_gradle/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java b/demo_gradle/app/src/main/java/org/pf4j/demo/Boot.java index d3e1502..46261d6 100644 --- a/demo_gradle/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java +++ b/demo_gradle/app/src/main/java/org/pf4j/demo/Boot.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.demo; +package org.pf4j.demo; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import ro.fortsoft.pf4j.DefaultPluginManager; -import ro.fortsoft.pf4j.PluginManager; -import ro.fortsoft.pf4j.PluginWrapper; -import ro.fortsoft.pf4j.demo.api.Greeting; +import org.pf4j.DefaultPluginManager; +import org.pf4j.PluginManager; +import org.pf4j.PluginWrapper; +import org.pf4j.demo.api.Greeting; import java.util.List; diff --git a/demo_gradle/app/src/main/java/ro/fortsoft/pf4j/demo/WhazzupGreeting.java b/demo_gradle/app/src/main/java/org/pf4j/demo/WhazzupGreeting.java index e182f2a..c742127 100644 --- a/demo_gradle/app/src/main/java/ro/fortsoft/pf4j/demo/WhazzupGreeting.java +++ b/demo_gradle/app/src/main/java/org/pf4j/demo/WhazzupGreeting.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.demo; +package org.pf4j.demo; -import ro.fortsoft.pf4j.Extension; -import ro.fortsoft.pf4j.demo.api.Greeting; +import org.pf4j.Extension; +import org.pf4j.demo.api.Greeting; /** * @author Decebal Suiu diff --git a/demo_gradle/app/src/main/resources/log4j.properties b/demo_gradle/app/src/main/resources/log4j.properties index 16ce034..f42e226 100644 --- a/demo_gradle/app/src/main/resources/log4j.properties +++ b/demo_gradle/app/src/main/resources/log4j.properties @@ -3,9 +3,9 @@ log4j.rootLogger=DEBUG, Console # # PF4J log # -log4j.logger.ro.fortsoft.pf4j=DEBUG, Console -log4j.logger.ro.fortsoft.pf4j.PluginClassLoader=WARN, Console -log4j.additivity.ro.fortsoft.pf4j=false +log4j.logger.org.pf4j=DEBUG, Console +log4j.logger.org.pf4j.PluginClassLoader=WARN, Console +log4j.additivity.org.pf4j=false # # Appenders diff --git a/demo_gradle/build.gradle b/demo_gradle/build.gradle index e38a949..d86746d 100644 --- a/demo_gradle/build.gradle +++ b/demo_gradle/build.gradle @@ -1,10 +1,10 @@ subprojects { - apply plugin: 'java' + apply plugin: 'java' - repositories { - mavenLocal() - mavenCentral() - } + repositories { + mavenLocal() + mavenCentral() + } } task copyPlugins() { @@ -14,7 +14,7 @@ task copyPlugins() { subprojects.each { p -> if (p.path.contains(":plugins/")) { - System.out.println("Copying plugin from " + p.path); + System.out.println("Copying plugin from " + p.path); copy { from p.projectDir.toString() + '/build/libs' into 'app/plugins' diff --git a/demo_gradle/plugins/plugin1/build.gradle b/demo_gradle/plugins/plugin1/build.gradle index 596101e..f0998a1 100644 --- a/demo_gradle/plugins/plugin1/build.gradle +++ b/demo_gradle/plugins/plugin1/build.gradle @@ -2,31 +2,32 @@ jar { baseName = 'WelcomePlugin' version = '0.1.0' manifest { - attributes 'Plugin-Class' : 'ro.fortsoft.pf4j.demo.welcome.WelcomePlugin', - 'Plugin-Id' : 'WelcomePlugin', - 'Plugin-Version' : '1.0.0', - 'Plugin-Provider' : 'Decebal Suiu' + attributes 'Plugin-Class': 'org.pf4j.demo.welcome.WelcomePlugin', + 'Plugin-Id': 'WelcomePlugin', + 'Plugin-Version': '1.0.0', + 'Plugin-Provider': 'Decebal Suiu' } } task plugin(type: Jar) { - baseName = 'WelcomePlugin' - version = '0.1.0' - into('classes'){ - with jar - } - into('lib'){ - from configurations.compile - } - extension('zip') + baseName = 'WelcomePlugin' + version = '0.1.0' + into('classes') { + with jar + } + into('lib') { + from configurations.compile + } + extension('zip') } assemble.dependsOn plugin dependencies { - compileOnly project(':api') // compileOnly important!!! We do not want to put the api into the zip file since the main program has it already! - compile ('ro.fortsoft.pf4j:pf4j:1.3.0') { - exclude group: "org.slf4j" - } - compile 'org.apache.commons:commons-lang3:3.5' - testCompile group: 'junit', name: 'junit', version: '4.+' + compileOnly project(':api') + // compileOnly important!!! We do not want to put the api into the zip file since the main program has it already! + compile('org.pf4j:pf4j:1.4.0-SNAPSHOT') { + exclude group: "org.slf4j" + } + compile 'org.apache.commons:commons-lang3:3.5' + testCompile group: 'junit', name: 'junit', version: '4.+' } diff --git a/demo_gradle/plugins/plugin1/plugin.properties b/demo_gradle/plugins/plugin1/plugin.properties index 4f95d99..9da9bcc 100644 --- a/demo_gradle/plugins/plugin1/plugin.properties +++ b/demo_gradle/plugins/plugin1/plugin.properties @@ -1,5 +1,5 @@ plugin.id=welcome-plugin -plugin.class=ro.fortsoft.pf4j.demo.welcome.WelcomePlugin +plugin.class=org.pf4j.demo.welcome.WelcomePlugin plugin.version=0.0.1 plugin.provider=Decebal Suiu plugin.dependencies= diff --git a/demo_gradle/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java b/demo_gradle/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java index 46ca250..040c9fd 100644 --- a/demo_gradle/plugins/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java +++ b/demo_gradle/plugins/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java @@ -13,16 +13,16 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.demo.welcome; +package org.pf4j.demo.welcome; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import ro.fortsoft.pf4j.Extension; -import ro.fortsoft.pf4j.Plugin; -import ro.fortsoft.pf4j.PluginWrapper; -import ro.fortsoft.pf4j.demo.api.Greeting; +import org.pf4j.Extension; +import org.pf4j.Plugin; +import org.pf4j.PluginWrapper; +import org.pf4j.demo.api.Greeting; /** * @author Decebal Suiu diff --git a/demo_gradle/plugins/plugin2/build.gradle b/demo_gradle/plugins/plugin2/build.gradle index 3a96d1e..0e292fb 100644 --- a/demo_gradle/plugins/plugin2/build.gradle +++ b/demo_gradle/plugins/plugin2/build.gradle @@ -1,32 +1,33 @@ jar { - baseName = 'HelloPlugin' - version = '0.1.0' - manifest { - attributes 'Plugin-Class' : 'ro.fortsoft.pf4j.demo.hello.HelloPlugin', - 'Plugin-Id' : 'HelloPlugin', - 'Plugin-Version' : '1.0.0', - 'Plugin-Provider' : 'Decebal Suiu' - } + baseName = 'HelloPlugin' + version = '0.1.0' + manifest { + attributes 'Plugin-Class': 'org.pf4j.demo.hello.HelloPlugin', + 'Plugin-Id': 'HelloPlugin', + 'Plugin-Version': '1.0.0', + 'Plugin-Provider': 'Decebal Suiu' + } } task plugin(type: Jar) { - baseName = 'HelloPlugin' - version = '0.1.0' - into('classes'){ - with jar - } - into('lib'){ - from configurations.compile - } - extension('zip') + baseName = 'HelloPlugin' + version = '0.1.0' + into('classes') { + with jar + } + into('lib') { + from configurations.compile + } + extension('zip') } assemble.dependsOn plugin dependencies { - compileOnly project(':api') // compileOnly important!!! We do not want to put the api into the zip file since the main program has it already! - compile ('ro.fortsoft.pf4j:pf4j:1.3.0') { - exclude group: "org.slf4j" - } - compile 'org.apache.commons:commons-lang3:3.5' - testCompile group: 'junit', name: 'junit', version: '4.+' + compileOnly project(':api') + // compileOnly important!!! We do not want to put the api into the zip file since the main program has it already! + compile('org.pf4j:pf4j:1.4.0-SNAPSHOT') { + exclude group: "org.slf4j" + } + compile 'org.apache.commons:commons-lang3:3.5' + testCompile group: 'junit', name: 'junit', version: '4.+' } diff --git a/demo_gradle/plugins/plugin2/plugin.properties b/demo_gradle/plugins/plugin2/plugin.properties index 0de45e6..60b6f33 100644 --- a/demo_gradle/plugins/plugin2/plugin.properties +++ b/demo_gradle/plugins/plugin2/plugin.properties @@ -1,5 +1,5 @@ plugin.id=hello-plugin -plugin.class=ro.fortsoft.pf4j.demo.hello.HelloPlugin +plugin.class=org.pf4j.demo.hello.HelloPlugin plugin.version=0.0.1 plugin.provider=Decebal Suiu plugin.dependencies= diff --git a/demo_gradle/plugins/plugin2/src/main/java/ro/fortsoft/pf4j/demo/hello/HelloPlugin.java b/demo_gradle/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java index 82c0046..f8e83d3 100644 --- a/demo_gradle/plugins/plugin2/src/main/java/ro/fortsoft/pf4j/demo/hello/HelloPlugin.java +++ b/demo_gradle/plugins/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.demo.hello; +package org.pf4j.demo.hello; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import ro.fortsoft.pf4j.Extension; -import ro.fortsoft.pf4j.Plugin; -import ro.fortsoft.pf4j.PluginWrapper; -import ro.fortsoft.pf4j.demo.api.Greeting; +import org.pf4j.Extension; +import org.pf4j.Plugin; +import org.pf4j.PluginWrapper; +import org.pf4j.demo.api.Greeting; /** * A very simple plugin. diff --git a/demo_gradle/plugins/plugin3/build.gradle b/demo_gradle/plugins/plugin3/build.gradle index d77258e..7dd77dc 100644 --- a/demo_gradle/plugins/plugin3/build.gradle +++ b/demo_gradle/plugins/plugin3/build.gradle @@ -13,20 +13,20 @@ jar { baseName = 'KotlinPlugin' version = '0.1.0' manifest { - attributes 'Plugin-Class' : 'ro.fortsoft.pf4j.demo.kotlin.KotlinPlugin', - 'Plugin-Id' : 'KotlinPlugin', - 'Plugin-Version' : '1.0.0', - 'Plugin-Provider' : 'Anindya Chatterjee' + attributes 'Plugin-Class': 'org.pf4j.demo.kotlin.KotlinPlugin', + 'Plugin-Id': 'KotlinPlugin', + 'Plugin-Version': '1.0.0', + 'Plugin-Provider': 'Anindya Chatterjee' } } task plugin(type: Jar) { baseName = 'KotlinPlugin' version = '0.1.0' - into('classes'){ + into('classes') { with jar } - into('lib'){ + into('lib') { from configurations.compile } extension('zip') @@ -42,7 +42,7 @@ repositories { dependencies { compileOnly project(':api') - kapt ('ro.fortsoft.pf4j:pf4j:1.3.0') { + kapt('org.pf4j:pf4j:1.4.0-SNAPSHOT') { exclude group: "org.slf4j" } compile 'org.apache.commons:commons-lang3:3.5' diff --git a/demo_gradle/plugins/plugin3/src/main/kotlin/ro/fortsoft/pf4j/demo/kotlin/KotlinPlugin.kt b/demo_gradle/plugins/plugin3/src/main/kotlin/org/pf4j/demo/kotlin/KotlinPlugin.kt index f8df469..2b2bc17 100644 --- a/demo_gradle/plugins/plugin3/src/main/kotlin/ro/fortsoft/pf4j/demo/kotlin/KotlinPlugin.kt +++ b/demo_gradle/plugins/plugin3/src/main/kotlin/org/pf4j/demo/kotlin/KotlinPlugin.kt @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.demo.kotlin +package org.pf4j.demo.kotlin import org.apache.commons.lang3.StringUtils import org.slf4j.LoggerFactory -import ro.fortsoft.pf4j.Extension -import ro.fortsoft.pf4j.Plugin -import ro.fortsoft.pf4j.PluginWrapper -import ro.fortsoft.pf4j.demo.api.Greeting +import org.pf4j.Extension +import org.pf4j.Plugin +import org.pf4j.PluginWrapper +import org.pf4j.demo.api.Greeting /** * A sample plugin written in Kotlin diff --git a/demo_gradle/settings.gradle b/demo_gradle/settings.gradle index 8bbcb21..7ee71ba 100644 --- a/demo_gradle/settings.gradle +++ b/demo_gradle/settings.gradle @@ -3,4 +3,3 @@ include 'app' include 'plugins/plugin1' include 'plugins/plugin2' include 'plugins/plugin3' - diff --git a/pf4j/pom.xml b/pf4j/pom.xml index a669078..a3c0601 100644 --- a/pf4j/pom.xml +++ b/pf4j/pom.xml @@ -2,7 +2,7 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> - <groupId>ro.fortsoft.pf4j</groupId> + <groupId>org.pf4j</groupId> <artifactId>pf4j-parent</artifactId> <version>1.4.0-SNAPSHOT</version> </parent> diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java b/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java index 8e4a506..49be73b 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/AbstractExtensionFinder.java +++ b/pf4j/src/main/java/org/pf4j/AbstractExtensionFinder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; +import org.pf4j.util.ClassUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import ro.fortsoft.pf4j.util.ClassUtils; import java.util.ArrayList; import java.util.Collections; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/AbstractPluginManager.java b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java index 94fee2f..d2f2b42 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/AbstractPluginManager.java +++ b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import ro.fortsoft.pf4j.util.StringUtils; +import org.pf4j.util.StringUtils; import java.io.Closeable; import java.io.IOException; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/BasePluginRepository.java b/pf4j/src/main/java/org/pf4j/BasePluginRepository.java index e9ee47f..c5d5281 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/BasePluginRepository.java +++ b/pf4j/src/main/java/org/pf4j/BasePluginRepository.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; -import ro.fortsoft.pf4j.util.FileUtils; +import org.pf4j.util.FileUtils; import java.io.File; import java.io.FileFilter; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/CompoundPluginRepository.java b/pf4j/src/main/java/org/pf4j/CompoundPluginRepository.java index b0341ea..105929c 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/CompoundPluginRepository.java +++ b/pf4j/src/main/java/org/pf4j/CompoundPluginRepository.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import java.nio.file.Path; import java.util.ArrayList; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFactory.java b/pf4j/src/main/java/org/pf4j/DefaultExtensionFactory.java index 63d7cee..7a2683b 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFactory.java +++ b/pf4j/src/main/java/org/pf4j/DefaultExtensionFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFinder.java b/pf4j/src/main/java/org/pf4j/DefaultExtensionFinder.java index 4f5f3bb..43a03fb 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFinder.java +++ b/pf4j/src/main/java/org/pf4j/DefaultExtensionFinder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import java.util.ArrayList; import java.util.HashSet; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginClasspath.java b/pf4j/src/main/java/org/pf4j/DefaultPluginClasspath.java index 71631c1..c62f223 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginClasspath.java +++ b/pf4j/src/main/java/org/pf4j/DefaultPluginClasspath.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; /** * The default values are {@code classes} and {@code lib}. diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginDescriptorFinder.java b/pf4j/src/main/java/org/pf4j/DefaultPluginDescriptorFinder.java index 2696fcd..c803f07 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginDescriptorFinder.java +++ b/pf4j/src/main/java/org/pf4j/DefaultPluginDescriptorFinder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginFactory.java b/pf4j/src/main/java/org/pf4j/DefaultPluginFactory.java index 9bc3173..93b0a19 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginFactory.java +++ b/pf4j/src/main/java/org/pf4j/DefaultPluginFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginLoader.java b/pf4j/src/main/java/org/pf4j/DefaultPluginLoader.java index e4c6b9f..bdd31eb 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginLoader.java +++ b/pf4j/src/main/java/org/pf4j/DefaultPluginLoader.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; -import ro.fortsoft.pf4j.util.FileUtils; +import org.pf4j.util.FileUtils; import java.io.File; import java.nio.file.Path; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java b/pf4j/src/main/java/org/pf4j/DefaultPluginManager.java index a7aaac5..0d79e82 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java +++ b/pf4j/src/main/java/org/pf4j/DefaultPluginManager.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; +import org.pf4j.util.FileUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import ro.fortsoft.pf4j.util.FileUtils; import java.io.File; import java.nio.file.Path; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginRepository.java b/pf4j/src/main/java/org/pf4j/DefaultPluginRepository.java index 197ae22..a97313f 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginRepository.java +++ b/pf4j/src/main/java/org/pf4j/DefaultPluginRepository.java @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; +import org.pf4j.util.AndFileFilter; +import org.pf4j.util.DirectoryFileFilter; +import org.pf4j.util.FileUtils; +import org.pf4j.util.HiddenFilter; +import org.pf4j.util.NotFileFilter; +import org.pf4j.util.OrFileFilter; +import org.pf4j.util.ZipFileFilter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import ro.fortsoft.pf4j.util.AndFileFilter; -import ro.fortsoft.pf4j.util.DirectoryFileFilter; -import ro.fortsoft.pf4j.util.FileUtils; -import ro.fortsoft.pf4j.util.HiddenFilter; -import ro.fortsoft.pf4j.util.NameFileFilter; -import ro.fortsoft.pf4j.util.NotFileFilter; -import ro.fortsoft.pf4j.util.OrFileFilter; -import ro.fortsoft.pf4j.util.ZipFileFilter; +import org.pf4j.util.NameFileFilter; import java.io.File; import java.io.FileFilter; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginStatusProvider.java b/pf4j/src/main/java/org/pf4j/DefaultPluginStatusProvider.java index 2c669b1..08c4607 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginStatusProvider.java +++ b/pf4j/src/main/java/org/pf4j/DefaultPluginStatusProvider.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; +import org.pf4j.util.FileUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import ro.fortsoft.pf4j.util.FileUtils; import java.io.IOException; import java.nio.file.Path; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultVersionManager.java b/pf4j/src/main/java/org/pf4j/DefaultVersionManager.java index 0d11e90..96adf56 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DefaultVersionManager.java +++ b/pf4j/src/main/java/org/pf4j/DefaultVersionManager.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import com.github.zafarkhaja.semver.Version; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DependencyResolver.java b/pf4j/src/main/java/org/pf4j/DependencyResolver.java index 0ea15a3..05e8d11 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DependencyResolver.java +++ b/pf4j/src/main/java/org/pf4j/DependencyResolver.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import ro.fortsoft.pf4j.util.DirectedGraph; +import org.pf4j.util.DirectedGraph; import java.util.ArrayList; import java.util.Collections; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/DevelopmentPluginClasspath.java b/pf4j/src/main/java/org/pf4j/DevelopmentPluginClasspath.java index ea70f9a..ba22e56 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/DevelopmentPluginClasspath.java +++ b/pf4j/src/main/java/org/pf4j/DevelopmentPluginClasspath.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; /** * Overwrite classes directories to {@code target/classes} and lib directories to {@code target/lib}. diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/Extension.java b/pf4j/src/main/java/org/pf4j/Extension.java index eb8234f..69a2049 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/Extension.java +++ b/pf4j/src/main/java/org/pf4j/Extension.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionDescriptor.java b/pf4j/src/main/java/org/pf4j/ExtensionDescriptor.java index 4096da5..cb0ebc1 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionDescriptor.java +++ b/pf4j/src/main/java/org/pf4j/ExtensionDescriptor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; /** * @author Decebal Suiu diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFactory.java b/pf4j/src/main/java/org/pf4j/ExtensionFactory.java index be8c62f..27ab5cc 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFactory.java +++ b/pf4j/src/main/java/org/pf4j/ExtensionFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; /** * Creates an extension instance. diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFinder.java b/pf4j/src/main/java/org/pf4j/ExtensionFinder.java index d00e838..146f040 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFinder.java +++ b/pf4j/src/main/java/org/pf4j/ExtensionFinder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import java.util.List; import java.util.Set; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionPoint.java b/pf4j/src/main/java/org/pf4j/ExtensionPoint.java index e01aa65..3e64e72 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionPoint.java +++ b/pf4j/src/main/java/org/pf4j/ExtensionPoint.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; /** * @author Decebal Suiu diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionWrapper.java b/pf4j/src/main/java/org/pf4j/ExtensionWrapper.java index f150c0d..50c9612 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionWrapper.java +++ b/pf4j/src/main/java/org/pf4j/ExtensionWrapper.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; /** * A wrapper over extension instance. diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/JarPluginManager.java b/pf4j/src/main/java/org/pf4j/JarPluginManager.java index bc66f03..232a8eb 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/JarPluginManager.java +++ b/pf4j/src/main/java/org/pf4j/JarPluginManager.java @@ -13,15 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; - -import ro.fortsoft.pf4j.util.AndFileFilter; -import ro.fortsoft.pf4j.util.DirectoryFileFilter; -import ro.fortsoft.pf4j.util.HiddenFilter; -import ro.fortsoft.pf4j.util.JarFileFilter; -import ro.fortsoft.pf4j.util.NameFileFilter; -import ro.fortsoft.pf4j.util.NotFileFilter; -import ro.fortsoft.pf4j.util.OrFileFilter; +package org.pf4j; + +import org.pf4j.util.AndFileFilter; +import org.pf4j.util.DirectoryFileFilter; +import org.pf4j.util.HiddenFilter; +import org.pf4j.util.JarFileFilter; +import org.pf4j.util.NotFileFilter; +import org.pf4j.util.OrFileFilter; +import org.pf4j.util.NameFileFilter; import java.io.FileFilter; import java.io.IOException; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/LegacyExtensionFinder.java b/pf4j/src/main/java/org/pf4j/LegacyExtensionFinder.java index 6814fa3..da51889 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/LegacyExtensionFinder.java +++ b/pf4j/src/main/java/org/pf4j/LegacyExtensionFinder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import ro.fortsoft.pf4j.processor.LegacyExtensionStorage; +import org.pf4j.processor.LegacyExtensionStorage; import java.io.IOException; import java.io.InputStreamReader; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/ManifestPluginDescriptorFinder.java b/pf4j/src/main/java/org/pf4j/ManifestPluginDescriptorFinder.java index a30fb67..1c3b9c2 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/ManifestPluginDescriptorFinder.java +++ b/pf4j/src/main/java/org/pf4j/ManifestPluginDescriptorFinder.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; -import ro.fortsoft.pf4j.util.StringUtils; +import org.pf4j.util.StringUtils; import java.nio.file.Path; import java.util.jar.Attributes; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/Plugin.java b/pf4j/src/main/java/org/pf4j/Plugin.java index 690258f..1972664 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/Plugin.java +++ b/pf4j/src/main/java/org/pf4j/Plugin.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java b/pf4j/src/main/java/org/pf4j/PluginClassLoader.java index 4e31fc3..586f1b3 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java +++ b/pf4j/src/main/java/org/pf4j/PluginClassLoader.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -35,7 +35,7 @@ public class PluginClassLoader extends URLClassLoader { private static final Logger log = LoggerFactory.getLogger(PluginClassLoader.class); - private static final String PLUGIN_PACKAGE_PREFIX = "ro.fortsoft.pf4j."; + private static final String PLUGIN_PACKAGE_PREFIX = "org.pf4j."; private PluginManager pluginManager; private PluginDescriptor pluginDescriptor; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginClasspath.java b/pf4j/src/main/java/org/pf4j/PluginClasspath.java index 3a6e99d..06b9ec5 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginClasspath.java +++ b/pf4j/src/main/java/org/pf4j/PluginClasspath.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import java.util.ArrayList; import java.util.Arrays; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginDependency.java b/pf4j/src/main/java/org/pf4j/PluginDependency.java index 44a147f..fa2f280 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginDependency.java +++ b/pf4j/src/main/java/org/pf4j/PluginDependency.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; /** * @author Decebal Suiu diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptor.java b/pf4j/src/main/java/org/pf4j/PluginDescriptor.java index e7bcb89..6dddbbf 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptor.java +++ b/pf4j/src/main/java/org/pf4j/PluginDescriptor.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import java.util.ArrayList; import java.util.Collections; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptorFinder.java b/pf4j/src/main/java/org/pf4j/PluginDescriptorFinder.java index c84adaf..2edfbb5 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptorFinder.java +++ b/pf4j/src/main/java/org/pf4j/PluginDescriptorFinder.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import java.nio.file.Path; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginException.java b/pf4j/src/main/java/org/pf4j/PluginException.java index 3d4aec4..4a57af4 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginException.java +++ b/pf4j/src/main/java/org/pf4j/PluginException.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; -import ro.fortsoft.pf4j.util.StringUtils; +import org.pf4j.util.StringUtils; /** * An exception used to indicate that a plugin problem occurred. diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginFactory.java b/pf4j/src/main/java/org/pf4j/PluginFactory.java index 85215ee..4909ade 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginFactory.java +++ b/pf4j/src/main/java/org/pf4j/PluginFactory.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; /** * Creates a plugin instance. diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginLoader.java b/pf4j/src/main/java/org/pf4j/PluginLoader.java index ecd0e08..5ac2755 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginLoader.java +++ b/pf4j/src/main/java/org/pf4j/PluginLoader.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import java.nio.file.Path; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java b/pf4j/src/main/java/org/pf4j/PluginManager.java index 793784b..06fc68e 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java +++ b/pf4j/src/main/java/org/pf4j/PluginManager.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import java.nio.file.Path; import java.util.List; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginRepository.java b/pf4j/src/main/java/org/pf4j/PluginRepository.java index 6f57c57..de1347d 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginRepository.java +++ b/pf4j/src/main/java/org/pf4j/PluginRepository.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import java.nio.file.Path; import java.util.List; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginState.java b/pf4j/src/main/java/org/pf4j/PluginState.java index 8df6a0f..2de2523 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginState.java +++ b/pf4j/src/main/java/org/pf4j/PluginState.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; /** * @author Decebal Suiu diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStateEvent.java b/pf4j/src/main/java/org/pf4j/PluginStateEvent.java index 0314eae..361fd3f 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStateEvent.java +++ b/pf4j/src/main/java/org/pf4j/PluginStateEvent.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import java.util.EventObject; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStateListener.java b/pf4j/src/main/java/org/pf4j/PluginStateListener.java index 99e2fec..5312b1b 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStateListener.java +++ b/pf4j/src/main/java/org/pf4j/PluginStateListener.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import java.util.EventListener; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStatusProvider.java b/pf4j/src/main/java/org/pf4j/PluginStatusProvider.java index 4943530..07d5f43 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginStatusProvider.java +++ b/pf4j/src/main/java/org/pf4j/PluginStatusProvider.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; /** * @author Decebal Suiu diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginWrapper.java b/pf4j/src/main/java/org/pf4j/PluginWrapper.java index e594f68..5ed641f 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PluginWrapper.java +++ b/pf4j/src/main/java/org/pf4j/PluginWrapper.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import java.nio.file.Path; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinder.java b/pf4j/src/main/java/org/pf4j/PropertiesPluginDescriptorFinder.java index 259040c..0391bce 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinder.java +++ b/pf4j/src/main/java/org/pf4j/PropertiesPluginDescriptorFinder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import ro.fortsoft.pf4j.util.StringUtils; +import org.pf4j.util.StringUtils; import java.io.IOException; import java.io.InputStream; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/RuntimeMode.java b/pf4j/src/main/java/org/pf4j/RuntimeMode.java index 1ceb6d9..f4bec88 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/RuntimeMode.java +++ b/pf4j/src/main/java/org/pf4j/RuntimeMode.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import java.util.HashMap; import java.util.Map; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/ServiceProviderExtensionFinder.java b/pf4j/src/main/java/org/pf4j/ServiceProviderExtensionFinder.java index 4912507..bd7c768 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/ServiceProviderExtensionFinder.java +++ b/pf4j/src/main/java/org/pf4j/ServiceProviderExtensionFinder.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; +import org.pf4j.processor.ServiceProviderExtensionStorage; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import ro.fortsoft.pf4j.processor.ServiceProviderExtensionStorage; import java.io.IOException; import java.io.Reader; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/VersionManager.java b/pf4j/src/main/java/org/pf4j/VersionManager.java index c3de913..ae9187b 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/VersionManager.java +++ b/pf4j/src/main/java/org/pf4j/VersionManager.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; /** * Manager responsible for versions of plugins. diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionAnnotationProcessor.java b/pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java index 5174f64..30c604c 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionAnnotationProcessor.java +++ b/pf4j/src/main/java/org/pf4j/processor/ExtensionAnnotationProcessor.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.processor; +package org.pf4j.processor; -import ro.fortsoft.pf4j.Extension; -import ro.fortsoft.pf4j.ExtensionPoint; +import org.pf4j.Extension; +import org.pf4j.ExtensionPoint; import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.ProcessingEnvironment; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionStorage.java b/pf4j/src/main/java/org/pf4j/processor/ExtensionStorage.java index d184ea7..55394b7 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ExtensionStorage.java +++ b/pf4j/src/main/java/org/pf4j/processor/ExtensionStorage.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.processor; +package org.pf4j.processor; import javax.annotation.processing.Filer; import javax.lang.model.element.Element; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/processor/LegacyExtensionStorage.java b/pf4j/src/main/java/org/pf4j/processor/LegacyExtensionStorage.java index 15d417a..d664e4e 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/processor/LegacyExtensionStorage.java +++ b/pf4j/src/main/java/org/pf4j/processor/LegacyExtensionStorage.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.processor; +package org.pf4j.processor; import javax.annotation.processing.FilerException; import javax.tools.FileObject; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ServiceProviderExtensionStorage.java b/pf4j/src/main/java/org/pf4j/processor/ServiceProviderExtensionStorage.java index 054dcdd..135063f 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/processor/ServiceProviderExtensionStorage.java +++ b/pf4j/src/main/java/org/pf4j/processor/ServiceProviderExtensionStorage.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.processor; +package org.pf4j.processor; import javax.annotation.processing.FilerException; import javax.tools.FileObject; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/AndFileFilter.java b/pf4j/src/main/java/org/pf4j/util/AndFileFilter.java index b076a69..0add9f4 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/AndFileFilter.java +++ b/pf4j/src/main/java/org/pf4j/util/AndFileFilter.java @@ -13,14 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; import java.io.File; import java.io.FileFilter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; -import java.util.Iterator; import java.util.List; /** diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/ClassUtils.java b/pf4j/src/main/java/org/pf4j/util/ClassUtils.java index b435c2f..ca2632d 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/ClassUtils.java +++ b/pf4j/src/main/java/org/pf4j/util/ClassUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; import java.lang.reflect.Modifier; import java.util.ArrayList; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/DirectedGraph.java b/pf4j/src/main/java/org/pf4j/util/DirectedGraph.java index 8970c78..bc2b8fb 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/DirectedGraph.java +++ b/pf4j/src/main/java/org/pf4j/util/DirectedGraph.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; import java.util.ArrayList; import java.util.Collections; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/DirectoryFileFilter.java b/pf4j/src/main/java/org/pf4j/util/DirectoryFileFilter.java index 05cce35..fab20fa 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/DirectoryFileFilter.java +++ b/pf4j/src/main/java/org/pf4j/util/DirectoryFileFilter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; import java.io.File; import java.io.FileFilter; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/ExtensionFileFilter.java b/pf4j/src/main/java/org/pf4j/util/ExtensionFileFilter.java index 8146f5f..a8636fc 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/ExtensionFileFilter.java +++ b/pf4j/src/main/java/org/pf4j/util/ExtensionFileFilter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; import java.io.File; import java.io.FileFilter; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/FileUtils.java b/pf4j/src/main/java/org/pf4j/util/FileUtils.java index 6ce7f42..9399588 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/FileUtils.java +++ b/pf4j/src/main/java/org/pf4j/util/FileUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/HiddenFilter.java b/pf4j/src/main/java/org/pf4j/util/HiddenFilter.java index f18372a..649e8e0 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/HiddenFilter.java +++ b/pf4j/src/main/java/org/pf4j/util/HiddenFilter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; import java.io.File; import java.io.FileFilter; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/JarFileFilter.java b/pf4j/src/main/java/org/pf4j/util/JarFileFilter.java index d947c34..f015850 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/JarFileFilter.java +++ b/pf4j/src/main/java/org/pf4j/util/JarFileFilter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; /** * File filter that accepts all files ending with .JAR. diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/NameFileFilter.java b/pf4j/src/main/java/org/pf4j/util/NameFileFilter.java index 9071882..c114352 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/NameFileFilter.java +++ b/pf4j/src/main/java/org/pf4j/util/NameFileFilter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; import java.io.File; import java.io.FileFilter; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/NotFileFilter.java b/pf4j/src/main/java/org/pf4j/util/NotFileFilter.java index c30ce40..06f6140 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/NotFileFilter.java +++ b/pf4j/src/main/java/org/pf4j/util/NotFileFilter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; import java.io.File; import java.io.FileFilter; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/OrFileFilter.java b/pf4j/src/main/java/org/pf4j/util/OrFileFilter.java index 33e3e83..8bf3f24 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/OrFileFilter.java +++ b/pf4j/src/main/java/org/pf4j/util/OrFileFilter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; import java.io.File; import java.io.FileFilter; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/StringUtils.java b/pf4j/src/main/java/org/pf4j/util/StringUtils.java index 62afecc..49657d5 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/StringUtils.java +++ b/pf4j/src/main/java/org/pf4j/util/StringUtils.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; /** * @author Decebal Suiu diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/Unzip.java b/pf4j/src/main/java/org/pf4j/util/Unzip.java index bcf6c9d..5d0c34a 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/Unzip.java +++ b/pf4j/src/main/java/org/pf4j/util/Unzip.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; import java.io.File; import java.io.FileInputStream; diff --git a/pf4j/src/main/java/ro/fortsoft/pf4j/util/ZipFileFilter.java b/pf4j/src/main/java/org/pf4j/util/ZipFileFilter.java index 08913a0..d4748e6 100644 --- a/pf4j/src/main/java/ro/fortsoft/pf4j/util/ZipFileFilter.java +++ b/pf4j/src/main/java/org/pf4j/util/ZipFileFilter.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; /** * File filter that accepts all files ending with .ZIP. diff --git a/pf4j/src/main/resources/META-INF/services/javax.annotation.processing.Processor b/pf4j/src/main/resources/META-INF/services/javax.annotation.processing.Processor index c616e6e..164832f 100644 --- a/pf4j/src/main/resources/META-INF/services/javax.annotation.processing.Processor +++ b/pf4j/src/main/resources/META-INF/services/javax.annotation.processing.Processor @@ -1 +1 @@ -ro.fortsoft.pf4j.processor.ExtensionAnnotationProcessor +org.pf4j.processor.ExtensionAnnotationProcessor diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/AbstractExtensionFinderTest.java b/pf4j/src/test/java/org/pf4j/AbstractExtensionFinderTest.java index 47a1b20..9e1c40e 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/AbstractExtensionFinderTest.java +++ b/pf4j/src/test/java/org/pf4j/AbstractExtensionFinderTest.java @@ -13,13 +13,13 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.junit.After; import org.junit.Before; import org.junit.Test; -import ro.fortsoft.pf4j.plugin.FailTestPlugin; -import ro.fortsoft.pf4j.plugin.TestExtensionPoint; +import org.pf4j.plugin.FailTestPlugin; +import org.pf4j.plugin.TestExtensionPoint; import java.util.Collections; import java.util.HashSet; @@ -101,8 +101,8 @@ public class AbstractExtensionFinderTest { Map<String, Set<String>> entries = new LinkedHashMap<>(); Set<String> bucket = new HashSet<>(); - bucket.add("ro.fortsoft.pf4j.plugin.TestExtension"); - bucket.add("ro.fortsoft.pf4j.plugin.FailTestExtension"); + bucket.add("org.pf4j.plugin.TestExtension"); + bucket.add("org.pf4j.plugin.FailTestExtension"); entries.put(null, bucket); return entries; @@ -126,11 +126,11 @@ public class AbstractExtensionFinderTest { Map<String, Set<String>> entries = new LinkedHashMap<>(); Set<String> bucket = new HashSet<>(); - bucket.add("ro.fortsoft.pf4j.plugin.TestExtension"); - bucket.add("ro.fortsoft.pf4j.plugin.FailTestExtension"); + bucket.add("org.pf4j.plugin.TestExtension"); + bucket.add("org.pf4j.plugin.FailTestExtension"); entries.put("plugin1", bucket); bucket = new HashSet<>(); - bucket.add("ro.fortsoft.pf4j.plugin.TestExtension"); + bucket.add("org.pf4j.plugin.TestExtension"); entries.put("plugin2", bucket); return entries; @@ -165,7 +165,7 @@ public class AbstractExtensionFinderTest { Map<String, Set<String>> entries = new LinkedHashMap<>(); Set<String> bucket = new HashSet<>(); - bucket.add("ro.fortsoft.pf4j.plugin.TestExtension"); + bucket.add("org.pf4j.plugin.TestExtension"); entries.put("plugin1", bucket); return entries; @@ -176,8 +176,8 @@ public class AbstractExtensionFinderTest { Map<String, Set<String>> entries = new LinkedHashMap<>(); Set<String> bucket = new HashSet<>(); - bucket.add("ro.fortsoft.pf4j.plugin.TestExtension"); - bucket.add("ro.fortsoft.pf4j.plugin.FailTestExtension"); + bucket.add("org.pf4j.plugin.TestExtension"); + bucket.add("org.pf4j.plugin.FailTestExtension"); entries.put(null, bucket); return entries; diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultExtensionFactoryTest.java b/pf4j/src/test/java/org/pf4j/DefaultExtensionFactoryTest.java index 28a4495..01822d0 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultExtensionFactoryTest.java +++ b/pf4j/src/test/java/org/pf4j/DefaultExtensionFactoryTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.junit.Test; -import ro.fortsoft.pf4j.plugin.FailTestExtension; -import ro.fortsoft.pf4j.plugin.TestExtension; +import org.pf4j.plugin.TestExtension; +import org.pf4j.plugin.FailTestExtension; import static org.junit.Assert.*; diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginFactoryTest.java b/pf4j/src/test/java/org/pf4j/DefaultPluginFactoryTest.java index aef1fcc..5735328 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginFactoryTest.java +++ b/pf4j/src/test/java/org/pf4j/DefaultPluginFactoryTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.junit.Test; -import ro.fortsoft.pf4j.plugin.AnotherFailTestPlugin; -import ro.fortsoft.pf4j.plugin.FailTestPlugin; -import ro.fortsoft.pf4j.plugin.TestPlugin; +import org.pf4j.plugin.FailTestPlugin; +import org.pf4j.plugin.TestPlugin; +import org.pf4j.plugin.AnotherFailTestPlugin; import static org.hamcrest.CoreMatchers.instanceOf; import static org.junit.Assert.assertNotNull; @@ -76,7 +76,7 @@ public class DefaultPluginFactoryTest { @Test public void testCreateFailNotFound() { PluginDescriptor pluginDescriptor = mock(PluginDescriptor.class); - when(pluginDescriptor.getPluginClass()).thenReturn("ro.fortsoft.pf4j.plugin.NotFoundTestPlugin"); + when(pluginDescriptor.getPluginClass()).thenReturn("org.pf4j.plugin.NotFoundTestPlugin"); PluginWrapper pluginWrapper = mock(PluginWrapper.class); when(pluginWrapper.getDescriptor()).thenReturn(pluginDescriptor); diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginManagerTest.java b/pf4j/src/test/java/org/pf4j/DefaultPluginManagerTest.java index 4c154d1..03f8496 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginManagerTest.java +++ b/pf4j/src/test/java/org/pf4j/DefaultPluginManagerTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.junit.Before; import org.junit.Test; diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginRepositoryTest.java b/pf4j/src/test/java/org/pf4j/DefaultPluginRepositoryTest.java index 95c153b..b66b3b5 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginRepositoryTest.java +++ b/pf4j/src/test/java/org/pf4j/DefaultPluginRepositoryTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.junit.Before; import org.junit.Rule; diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginStatusProviderTest.java b/pf4j/src/test/java/org/pf4j/DefaultPluginStatusProviderTest.java index db33d65..da2752e 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultPluginStatusProviderTest.java +++ b/pf4j/src/test/java/org/pf4j/DefaultPluginStatusProviderTest.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; -import ro.fortsoft.pf4j.util.FileUtils; +import org.pf4j.util.FileUtils; import java.io.File; import java.io.IOException; diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultVersionManagerTest.java b/pf4j/src/test/java/org/pf4j/DefaultVersionManagerTest.java index 802291d..aaa5fa9 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/DefaultVersionManagerTest.java +++ b/pf4j/src/test/java/org/pf4j/DefaultVersionManagerTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import com.github.zafarkhaja.semver.ParseException; import org.junit.Before; diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/DependencyResolverTest.java b/pf4j/src/test/java/org/pf4j/DependencyResolverTest.java index 14aba39..44d2c93 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/DependencyResolverTest.java +++ b/pf4j/src/test/java/org/pf4j/DependencyResolverTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.junit.Before; import org.junit.Test; diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/ExtensionAnnotationProcessorTest.java b/pf4j/src/test/java/org/pf4j/ExtensionAnnotationProcessorTest.java index 1c99396..c2e7c0e 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/ExtensionAnnotationProcessorTest.java +++ b/pf4j/src/test/java/org/pf4j/ExtensionAnnotationProcessorTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.junit.Test; -import ro.fortsoft.pf4j.processor.ExtensionAnnotationProcessor; +import org.pf4j.processor.ExtensionAnnotationProcessor; import java.util.Set; diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/LegacyExtensionStorageTest.java b/pf4j/src/test/java/org/pf4j/LegacyExtensionStorageTest.java index aeeb371..14daa6e 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/LegacyExtensionStorageTest.java +++ b/pf4j/src/test/java/org/pf4j/LegacyExtensionStorageTest.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.junit.Test; -import ro.fortsoft.pf4j.processor.LegacyExtensionStorage; +import org.pf4j.processor.LegacyExtensionStorage; import java.io.IOException; import java.io.Reader; @@ -38,9 +38,9 @@ public class LegacyExtensionStorageTest { public void testRead() throws IOException { Reader reader = new StringReader( "# comment\n" - + "ro.fortsoft.pf4j.demo.hello.HelloPlugin$HelloGreeting\n" - + "ro.fortsoft.pf4j.demo.welcome.WelcomePlugin$WelcomeGreeting\n" - + "ro.fortsoft.pf4j.demo.welcome.OtherGreeting\n"); + + "org.pf4j.demo.hello.HelloPlugin$HelloGreeting\n" + + "org.pf4j.demo.welcome.WelcomePlugin$WelcomeGreeting\n" + + "org.pf4j.demo.welcome.OtherGreeting\n"); Set<String> entries = new HashSet<>(); LegacyExtensionStorage.read(reader, entries); diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/LoadPluginsTest.java b/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java index 9ee9899..5c46d66 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/LoadPluginsTest.java +++ b/pf4j/src/test/java/org/pf4j/LoadPluginsTest.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.junit.Before; import org.junit.Test; -import ro.fortsoft.pf4j.plugin.MockPluginManager; +import org.pf4j.plugin.MockPluginManager; import java.io.BufferedWriter; import java.io.FileWriter; @@ -161,7 +161,7 @@ public class LoadPluginsTest { br.newLine(); br.write("plugin.version=" + version); br.newLine(); - br.write("plugin.class=ro.fortsoft.pf4j.plugin.TestPlugin"); + br.write("plugin.class=org.pf4j.plugin.TestPlugin"); br.close(); Files.move(propsFile, propsInZip); } diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/ManifestPluginDescriptorFinderTest.java b/pf4j/src/test/java/org/pf4j/ManifestPluginDescriptorFinderTest.java index c858767..8c19733 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/ManifestPluginDescriptorFinderTest.java +++ b/pf4j/src/test/java/org/pf4j/ManifestPluginDescriptorFinderTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.junit.Before; import org.junit.Rule; @@ -45,11 +45,11 @@ public class ManifestPluginDescriptorFinderTest { Charset charset = Charset.forName("UTF-8"); Path pluginPath = testFolder.newFolder("test-plugin-1", "classes", "META-INF").toPath(); - Files.write(pluginPath.resolve("extensions.idx"), "ro.fortsoft.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes()); + Files.write(pluginPath.resolve("extensions.idx"), "org.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes()); Files.write(pluginPath.resolve("MANIFEST.MF"), getPlugin1Manifest(), charset); pluginPath = testFolder.newFolder("test-plugin-2", "classes", "META-INF").toPath(); - Files.write(pluginPath.resolve("extensions.idx"), "ro.fortsoft.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes()); + Files.write(pluginPath.resolve("extensions.idx"), "org.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes()); Files.write(pluginPath.resolve("MANIFEST.MF"), getPlugin2Manifest(), charset); // empty plugin @@ -57,17 +57,17 @@ public class ManifestPluginDescriptorFinderTest { // no plugin class pluginPath = testFolder.newFolder("test-plugin-4", "classes", "META-INF").toPath(); - Files.write(pluginPath.resolve("extensions.idx"), "ro.fortsoft.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes()); + Files.write(pluginPath.resolve("extensions.idx"), "org.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes()); Files.write(pluginPath.resolve("MANIFEST.MF"), getPlugin4Manifest(), charset); // no plugin version pluginPath = testFolder.newFolder("test-plugin-5", "classes", "META-INF").toPath(); - Files.write(pluginPath.resolve("extensions.idx"), "ro.fortsoft.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes()); + Files.write(pluginPath.resolve("extensions.idx"), "org.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes()); Files.write(pluginPath.resolve("MANIFEST.MF"), getPlugin5Manifest(), charset); // no plugin id pluginPath = testFolder.newFolder("test-plugin-6", "classes", "META-INF").toPath(); - Files.write(pluginPath.resolve("extensions.idx"), "ro.fortsoft.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes()); + Files.write(pluginPath.resolve("extensions.idx"), "org.pf4j.demo.hello.HelloPlugin$HelloGreeting".getBytes()); Files.write(pluginPath.resolve("MANIFEST.MF"), getPlugin6Manifest(), charset); versionManager = new DefaultVersionManager(); @@ -85,7 +85,7 @@ public class ManifestPluginDescriptorFinderTest { assertEquals("test-plugin-1", plugin1.getPluginId()); assertEquals("Test Plugin 1", plugin1.getPluginDescription()); - assertEquals("ro.fortsoft.pf4j.plugin.TestPlugin", plugin1.getPluginClass()); + assertEquals("org.pf4j.plugin.TestPlugin", plugin1.getPluginClass()); assertEquals("0.0.1", plugin1.getVersion()); assertEquals("Decebal Suiu", plugin1.getProvider()); assertEquals(2, plugin1.getDependencies().size()); @@ -97,7 +97,7 @@ public class ManifestPluginDescriptorFinderTest { assertEquals("test-plugin-2", plugin2.getPluginId()); assertEquals("", plugin2.getPluginDescription()); - assertEquals("ro.fortsoft.pf4j.plugin.TestPlugin", plugin2.getPluginClass()); + assertEquals("org.pf4j.plugin.TestPlugin", plugin2.getPluginClass()); assertEquals("0.0.1", plugin2.getVersion()); assertEquals("Decebal Suiu", plugin2.getProvider()); assertEquals(0, plugin2.getDependencies().size()); @@ -121,12 +121,12 @@ public class ManifestPluginDescriptorFinderTest { + "Archiver-Version: Plexus Archiver\n" + "Built-By: Mario Franco\n" + "Specification-Title: Test Plugin #1\n" - + "Implementation-Vendor-Id: ro.fortsoft.pf4j.demo\n" + + "Implementation-Vendor-Id: org.pf4j.demo\n" + "Plugin-Version: 0.0.1\n" + "Plugin-Id: test-plugin-1\n" + "Plugin-Description: Test Plugin 1\n" + "Plugin-Provider: Decebal Suiu\n" - + "Plugin-Class: ro.fortsoft.pf4j.plugin.TestPlugin\n" + + "Plugin-Class: org.pf4j.plugin.TestPlugin\n" + "Plugin-Dependencies: test-plugin-2,test-plugin-3@~1.0\n" + "Plugin-Requires: *\n" + "Plugin-License: Apache-2.0\n" @@ -149,11 +149,11 @@ public class ManifestPluginDescriptorFinderTest { + "Archiver-Version: Plexus Archiver\n" + "Built-By: Mario Franco\n" + "Specification-Title: Test Plugin #2\n" - + "Implementation-Vendor-Id: ro.fortsoft.pf4j.demo\n" + + "Implementation-Vendor-Id: org.pf4j.demo\n" + "Plugin-Version: 0.0.1\n" + "Plugin-Id: test-plugin-2\n" + "Plugin-Provider: Decebal Suiu\n" - + "Plugin-Class: ro.fortsoft.pf4j.plugin.TestPlugin\n" + + "Plugin-Class: org.pf4j.plugin.TestPlugin\n" + "Created-By: Apache Maven 3.0.5\n" + "Build-Jdk: 1.8.0_45\n" + "Specification-Version: 0.10.0-SNAPSHOT\n" @@ -172,7 +172,7 @@ public class ManifestPluginDescriptorFinderTest { + "Archiver-Version: Plexus Archiver\n" + "Built-By: Mario Franco\n" + "Specification-Title: Test Plugin #4\n" - + "Implementation-Vendor-Id: ro.fortsoft.pf4j.demo\n" + + "Implementation-Vendor-Id: org.pf4j.demo\n" + "Plugin-Version: 0.0.1\n" + "Plugin-Id: test-plugin-2\n" + "Plugin-Provider: Decebal Suiu\n" @@ -194,10 +194,10 @@ public class ManifestPluginDescriptorFinderTest { + "Archiver-Version: Plexus Archiver\n" + "Built-By: Mario Franco\n" + "Specification-Title: Test Plugin #5\n" - + "Implementation-Vendor-Id: ro.fortsoft.pf4j.demo\n" + + "Implementation-Vendor-Id: org.pf4j.demo\n" + "Plugin-Id: test-plugin-2\n" + "Plugin-Provider: Decebal Suiu\n" - + "Plugin-Class: ro.fortsoft.pf4j.plugin.TestPlugin\n" + + "Plugin-Class: org.pf4j.plugin.TestPlugin\n" + "Created-By: Apache Maven 3.0.5\n" + "Build-Jdk: 1.8.0_45\n" + "Specification-Version: 0.10.0-SNAPSHOT\n" @@ -216,9 +216,9 @@ public class ManifestPluginDescriptorFinderTest { + "Archiver-Version: Plexus Archiver\n" + "Built-By: Mario Franco\n" + "Specification-Title: Test Plugin #6\n" - + "Implementation-Vendor-Id: ro.fortsoft.pf4j.demo\n" + + "Implementation-Vendor-Id: org.pf4j.demo\n" + "Plugin-Provider: Decebal Suiu\n" - + "Plugin-Class: ro.fortsoft.pf4j.plugin.TestPlugin\n" + + "Plugin-Class: org.pf4j.plugin.TestPlugin\n" + "Created-By: Apache Maven 3.0.5\n" + "Build-Jdk: 1.8.0_45\n" + "Specification-Version: 0.10.0-SNAPSHOT\n" diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/PluginDependencyTest.java b/pf4j/src/test/java/org/pf4j/PluginDependencyTest.java index 9304e57..f65ee51 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/PluginDependencyTest.java +++ b/pf4j/src/test/java/org/pf4j/PluginDependencyTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.junit.Test; diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinderTest.java b/pf4j/src/test/java/org/pf4j/PropertiesPluginDescriptorFinderTest.java index aa6d7c5..e308f59 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/PropertiesPluginDescriptorFinderTest.java +++ b/pf4j/src/test/java/org/pf4j/PropertiesPluginDescriptorFinderTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j; +package org.pf4j; import org.junit.Before; import org.junit.Rule; @@ -73,7 +73,7 @@ public class PropertiesPluginDescriptorFinderTest { assertEquals("test-plugin-1", plugin1.getPluginId()); assertEquals("Test Plugin 1", plugin1.getPluginDescription()); - assertEquals("ro.fortsoft.pf4j.plugin.TestPlugin", plugin1.getPluginClass()); + assertEquals("org.pf4j.plugin.TestPlugin", plugin1.getPluginClass()); assertEquals("0.0.1", plugin1.getVersion()); assertEquals("Decebal Suiu", plugin1.getProvider()); assertEquals(2, plugin1.getDependencies().size()); @@ -87,7 +87,7 @@ public class PropertiesPluginDescriptorFinderTest { assertEquals("test-plugin-2", plugin2.getPluginId()); assertEquals("", plugin2.getPluginDescription()); - assertEquals("ro.fortsoft.pf4j.plugin.TestPlugin", plugin2.getPluginClass()); + assertEquals("org.pf4j.plugin.TestPlugin", plugin2.getPluginClass()); assertEquals("0.0.1", plugin2.getVersion()); assertEquals("Decebal Suiu", plugin2.getProvider()); assertEquals(0, plugin2.getDependencies().size()); @@ -107,7 +107,7 @@ public class PropertiesPluginDescriptorFinderTest { + "plugin.version=0.0.1\n" + "plugin.description=Test Plugin 1\n" + "plugin.provider=Decebal Suiu\n" - + "plugin.class=ro.fortsoft.pf4j.plugin.TestPlugin\n" + + "plugin.class=org.pf4j.plugin.TestPlugin\n" + "plugin.dependencies=test-plugin-2,test-plugin-3@~1.0\n" + "plugin.requires=>=1\n" + "plugin.license=Apache-2.0\n" @@ -123,7 +123,7 @@ public class PropertiesPluginDescriptorFinderTest { "plugin.id=test-plugin-2\n" + "plugin.version=0.0.1\n" + "plugin.provider=Decebal Suiu\n" - + "plugin.class=ro.fortsoft.pf4j.plugin.TestPlugin\n" + + "plugin.class=org.pf4j.plugin.TestPlugin\n" + "plugin.dependencies=\n" + "\n" + "" @@ -150,7 +150,7 @@ public class PropertiesPluginDescriptorFinderTest { String[] lines = new String[] { "plugin.id=test-plugin-2\n" + "plugin.provider=Decebal Suiu\n" - + "plugin.class=ro.fortsoft.pf4j.plugin.TestPlugin\n" + + "plugin.class=org.pf4j.plugin.TestPlugin\n" + "plugin.dependencies=\n" + "plugin.requires=*\n" + "\n" @@ -164,7 +164,7 @@ public class PropertiesPluginDescriptorFinderTest { String[] lines = new String[] { "plugin.version=0.0.1\n" + "plugin.provider=Decebal Suiu\n" - + "plugin.class=ro.fortsoft.pf4j.plugin.TestPlugin\n" + + "plugin.class=org.pf4j.plugin.TestPlugin\n" + "plugin.dependencies=\n" + "plugin.requires=*\n" + "\n" diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/AnotherFailTestPlugin.java b/pf4j/src/test/java/org/pf4j/plugin/AnotherFailTestPlugin.java index 5cfe611..aa124ad 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/AnotherFailTestPlugin.java +++ b/pf4j/src/test/java/org/pf4j/plugin/AnotherFailTestPlugin.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.plugin; +package org.pf4j.plugin; -import ro.fortsoft.pf4j.Plugin; +import org.pf4j.Plugin; /** * diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/FailTestExtension.java b/pf4j/src/test/java/org/pf4j/plugin/FailTestExtension.java index 3832b7f..2fa6062 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/FailTestExtension.java +++ b/pf4j/src/test/java/org/pf4j/plugin/FailTestExtension.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.plugin; +package org.pf4j.plugin; -import ro.fortsoft.pf4j.Extension; +import org.pf4j.Extension; /** * @author Mario Franco diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/FailTestPlugin.java b/pf4j/src/test/java/org/pf4j/plugin/FailTestPlugin.java index 0f4ba65..c53ae38 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/FailTestPlugin.java +++ b/pf4j/src/test/java/org/pf4j/plugin/FailTestPlugin.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.plugin; +package org.pf4j.plugin; /** * diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/MockPluginManager.java b/pf4j/src/test/java/org/pf4j/plugin/MockPluginManager.java index 139a0e8..eb1956d 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/MockPluginManager.java +++ b/pf4j/src/test/java/org/pf4j/plugin/MockPluginManager.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.plugin; +package org.pf4j.plugin; -import ro.fortsoft.pf4j.DefaultPluginClasspath; -import ro.fortsoft.pf4j.DefaultPluginDescriptorFinder; -import ro.fortsoft.pf4j.DefaultPluginManager; -import ro.fortsoft.pf4j.PluginDescriptorFinder; +import org.pf4j.DefaultPluginClasspath; +import org.pf4j.DefaultPluginDescriptorFinder; +import org.pf4j.DefaultPluginManager; +import org.pf4j.PluginDescriptorFinder; import java.nio.file.Path; diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtension.java b/pf4j/src/test/java/org/pf4j/plugin/TestExtension.java index 181e90d..9134358 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtension.java +++ b/pf4j/src/test/java/org/pf4j/plugin/TestExtension.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.plugin; +package org.pf4j.plugin; -import ro.fortsoft.pf4j.Extension; +import org.pf4j.Extension; /** * @author Mario Franco diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtensionPoint.java b/pf4j/src/test/java/org/pf4j/plugin/TestExtensionPoint.java index 3c1ee1e..f8a1a64 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestExtensionPoint.java +++ b/pf4j/src/test/java/org/pf4j/plugin/TestExtensionPoint.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.plugin; +package org.pf4j.plugin; -import ro.fortsoft.pf4j.ExtensionPoint; +import org.pf4j.ExtensionPoint; /** * @author Mario Franco diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestPlugin.java b/pf4j/src/test/java/org/pf4j/plugin/TestPlugin.java index 3557a16..f0f8c87 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/plugin/TestPlugin.java +++ b/pf4j/src/test/java/org/pf4j/plugin/TestPlugin.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.plugin; +package org.pf4j.plugin; -import ro.fortsoft.pf4j.Plugin; -import ro.fortsoft.pf4j.PluginWrapper; +import org.pf4j.Plugin; +import org.pf4j.PluginWrapper; /** * diff --git a/pf4j/src/test/java/ro/fortsoft/pf4j/util/FileUtilsTest.java b/pf4j/src/test/java/org/pf4j/util/FileUtilsTest.java index 6b98549..6b52fdf 100644 --- a/pf4j/src/test/java/ro/fortsoft/pf4j/util/FileUtilsTest.java +++ b/pf4j/src/test/java/org/pf4j/util/FileUtilsTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package ro.fortsoft.pf4j.util; +package org.pf4j.util; import org.junit.Before; import org.junit.Test; diff --git a/pf4j/src/test/resources/log4j.properties b/pf4j/src/test/resources/log4j.properties index 0454ba2..7edd29c 100644 --- a/pf4j/src/test/resources/log4j.properties +++ b/pf4j/src/test/resources/log4j.properties @@ -3,13 +3,13 @@ log4j.rootLogger=DEBUG, Console # # PF4J log # -log4j.logger.ro.fortsoft.pf4j=DEBUG, Console +log4j.logger.org.pf4j=DEBUG, Console # !!! Put the bellow classes on level TRACE when you are in trouble -log4j.logger.ro.fortsoft.pf4j.PluginClassLoader=WARN, Console -log4j.logger.ro.fortsoft.pf4j.AbstractExtensionFinder=DEBUG, Console -log4j.additivity.ro.fortsoft.pf4j=false -log4j.additivity.ro.fortsoft.pf4j.PluginClassLoader=false -log4j.additivity.ro.fortsoft.pf4j.AbstractExtensionFinder=false +log4j.logger.org.pf4j.PluginClassLoader=WARN, Console +log4j.logger.org.pf4j.AbstractExtensionFinder=DEBUG, Console +log4j.additivity.org.pf4j=false +log4j.additivity.org.pf4j.PluginClassLoader=false +log4j.additivity.org.pf4j.AbstractExtensionFinder=false # # Appenders @@ -8,7 +8,7 @@ </parent> <modelVersion>4.0.0</modelVersion> - <groupId>ro.fortsoft.pf4j</groupId> + <groupId>org.pf4j</groupId> <artifactId>pf4j-parent</artifactId> <version>1.4.0-SNAPSHOT</version> <packaging>pom</packaging> |