Browse Source

prepare for maven central repository

pull/3/head
Decebal Suiu 12 years ago
parent
commit
9bd850bd57
  1. 6
      README.md
  2. 4
      demo/api/pom.xml
  3. 4
      demo/api/src/main/java/ro/fortsoft/pf4j/demo/api/Greeting.java
  4. 8
      demo/app/pom.xml
  5. 11
      demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java
  6. 2
      demo/plugin1/plugin.properties
  7. 6
      demo/plugin1/pom.xml
  8. 10
      demo/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java
  9. 2
      demo/plugin2/plugin.properties
  10. 6
      demo/plugin2/pom.xml
  11. 10
      demo/plugin2/src/main/java/ro/fortsoft/pf4j/demo/hello/HelloPlugin.java
  12. 4
      demo/pom.xml
  13. 2
      pf4j/pom.xml
  14. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFinder.java
  15. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginDescriptorFinder.java
  16. 11
      pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java
  17. 5
      pf4j/src/main/java/ro/fortsoft/pf4j/DependencyResolver.java
  18. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/Extension.java
  19. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFinder.java
  20. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionPoint.java
  21. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionWrapper.java
  22. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/Plugin.java
  23. 4
      pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java
  24. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptor.java
  25. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptorFinder.java
  26. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/PluginException.java
  27. 7
      pf4j/src/main/java/ro/fortsoft/pf4j/PluginLoader.java
  28. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java
  29. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/PluginVersion.java
  30. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/PluginWrapper.java
  31. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/util/DirectedGraph.java
  32. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/util/DirectoryFilter.java
  33. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/util/ExtensionFilter.java
  34. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/util/JarFilter.java
  35. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/util/UberClassLoader.java
  36. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/util/Unzip.java
  37. 2
      pf4j/src/main/java/ro/fortsoft/pf4j/util/ZipFilter.java
  38. 2
      pom.xml

6
README.md

@ -30,7 +30,7 @@ In your pom.xml you must define the dependencies to PF4J artifacts with:
```xml ```xml
<dependency> <dependency>
<groupId>org.pf4j</groupId> <groupId>ro.fortsoft.pf4j</groupId>
<artifactId>pf4j</artifactId> <artifactId>pf4j</artifactId>
<version>${pf4j.version}</version> <version>${pf4j.version}</version>
</dependency> </dependency>
@ -77,13 +77,13 @@ In this case the `classes/META-INF/MANIFEST.MF` looks like:
Created-By: Apache Maven Created-By: Apache Maven
Built-By: decebal Built-By: decebal
Build-Jdk: 1.6.0_17 Build-Jdk: 1.6.0_17
Plugin-Class: org.pf4j.demo.welcome.WelcomePlugin Plugin-Class: ro.fortsoft.pf4j.demo.welcome.WelcomePlugin
Plugin-Dependencies: x, y, z Plugin-Dependencies: x, y, z
Plugin-Id: welcome-plugin Plugin-Id: welcome-plugin
Plugin-Provider: Decebal Suiu Plugin-Provider: Decebal Suiu
Plugin-Version: 0.0.1 Plugin-Version: 0.0.1
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 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
to plugins `x, y, z`. to plugins `x, y, z`.
You can define an extension point in your application using **ExtensionPoint** interface marker. You can define an extension point in your application using **ExtensionPoint** interface marker.

4
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"> <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> <parent>
<groupId>org.pf4j.demo</groupId> <groupId>ro.fortsoft.pf4j.demo</groupId>
<artifactId>pom</artifactId> <artifactId>pom</artifactId>
<version>0.1-SNAPSHOT</version> <version>0.1-SNAPSHOT</version>
</parent> </parent>
@ -34,7 +34,7 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.pf4j</groupId> <groupId>ro.fortsoft.pf4j</groupId>
<artifactId>pf4j</artifactId> <artifactId>pf4j</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<scope>provided</scope> <scope>provided</scope>

4
demo/api/src/main/java/org/pf4j/demo/api/Greeting.java → demo/api/src/main/java/ro/fortsoft/pf4j/demo/api/Greeting.java

@ -10,9 +10,9 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j.demo.api; package ro.fortsoft.pf4j.demo.api;
import org.pf4j.ExtensionPoint; import ro.fortsoft.pf4j.ExtensionPoint;
/** /**
* @author Decebal Suiu * @author Decebal Suiu

8
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"> <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> <parent>
<groupId>org.pf4j.demo</groupId> <groupId>ro.fortsoft.pf4j.demo</groupId>
<artifactId>pom</artifactId> <artifactId>pom</artifactId>
<version>0.1-SNAPSHOT</version> <version>0.1-SNAPSHOT</version>
</parent> </parent>
@ -22,7 +22,7 @@
</licenses> </licenses>
<properties> <properties>
<main.class>org.pf4j.demo.Boot</main.class> <main.class>ro.fortsoft.pf4j.demo.Boot</main.class>
</properties> </properties>
<build> <build>
@ -75,12 +75,12 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.pf4j</groupId> <groupId>ro.fortsoft.pf4j</groupId>
<artifactId>pf4j</artifactId> <artifactId>pf4j</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.pf4j.demo</groupId> <groupId>ro.fortsoft.pf4j.demo</groupId>
<artifactId>pf4j-demo-api</artifactId> <artifactId>pf4j-demo-api</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>

11
demo/app/src/main/java/org/pf4j/demo/Boot.java → demo/app/src/main/java/ro/fortsoft/pf4j/demo/Boot.java

@ -10,15 +10,16 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j.demo; package ro.fortsoft.pf4j.demo;
import java.util.List; import java.util.List;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
import org.pf4j.DefaultPluginManager;
import org.pf4j.ExtensionWrapper; import ro.fortsoft.pf4j.DefaultPluginManager;
import org.pf4j.PluginManager; import ro.fortsoft.pf4j.ExtensionWrapper;
import org.pf4j.demo.api.Greeting; import ro.fortsoft.pf4j.PluginManager;
import ro.fortsoft.pf4j.demo.api.Greeting;
/** /**
* A boot class that start the demo. * A boot class that start the demo.

2
demo/plugin1/plugin.properties

@ -1,5 +1,5 @@
plugin.id=welcome-plugin plugin.id=welcome-plugin
plugin.class=org.pf4j.demo.welcome.WelcomePlugin plugin.class=ro.fortsoft.pf4j.demo.welcome.WelcomePlugin
plugin.version=0.0.1 plugin.version=0.0.1
plugin.provider=Decebal Suiu plugin.provider=Decebal Suiu
plugin.dependencies= plugin.dependencies=

6
demo/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"> <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> <parent>
<groupId>org.pf4j.demo</groupId> <groupId>ro.fortsoft.pf4j.demo</groupId>
<artifactId>pom</artifactId> <artifactId>pom</artifactId>
<version>0.1-SNAPSHOT</version> <version>0.1-SNAPSHOT</version>
</parent> </parent>
@ -111,13 +111,13 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.pf4j</groupId> <groupId>ro.fortsoft.pf4j</groupId>
<artifactId>pf4j</artifactId> <artifactId>pf4j</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.pf4j.demo</groupId> <groupId>ro.fortsoft.pf4j.demo</groupId>
<artifactId>pf4j-demo-api</artifactId> <artifactId>pf4j-demo-api</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<scope>provided</scope> <scope>provided</scope>

10
demo/plugin1/src/main/java/org/pf4j/demo/welcome/WelcomePlugin.java → demo/plugin1/src/main/java/ro/fortsoft/pf4j/demo/welcome/WelcomePlugin.java

@ -10,12 +10,12 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j.demo.welcome; package ro.fortsoft.pf4j.demo.welcome;
import org.pf4j.Extension; import ro.fortsoft.pf4j.Extension;
import org.pf4j.Plugin; import ro.fortsoft.pf4j.Plugin;
import org.pf4j.PluginWrapper; import ro.fortsoft.pf4j.PluginWrapper;
import org.pf4j.demo.api.Greeting; import ro.fortsoft.pf4j.demo.api.Greeting;
/** /**
* @author Decebal Suiu * @author Decebal Suiu

2
demo/plugin2/plugin.properties

@ -1,5 +1,5 @@
plugin.id=hello-plugin plugin.id=hello-plugin
plugin.class=org.pf4j.demo.hello.HelloPlugin plugin.class=ro.fortsoft.pf4j.demo.hello.HelloPlugin
plugin.version=0.0.1 plugin.version=0.0.1
plugin.provider=Decebal Suiu plugin.provider=Decebal Suiu
plugin.dependencies= plugin.dependencies=

6
demo/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"> <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> <parent>
<groupId>org.pf4j.demo</groupId> <groupId>ro.fortsoft.pf4j.demo</groupId>
<artifactId>pom</artifactId> <artifactId>pom</artifactId>
<version>0.1-SNAPSHOT</version> <version>0.1-SNAPSHOT</version>
</parent> </parent>
@ -120,13 +120,13 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.pf4j</groupId> <groupId>ro.fortsoft.pf4j</groupId>
<artifactId>pf4j</artifactId> <artifactId>pf4j</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.pf4j.demo</groupId> <groupId>ro.fortsoft.pf4j.demo</groupId>
<artifactId>pf4j-demo-api</artifactId> <artifactId>pf4j-demo-api</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<scope>provided</scope> <scope>provided</scope>

10
demo/plugin2/src/main/java/org/pf4j/demo/hello/HelloPlugin.java → demo/plugin2/src/main/java/ro/fortsoft/pf4j/demo/hello/HelloPlugin.java

@ -10,12 +10,12 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j.demo.hello; package ro.fortsoft.pf4j.demo.hello;
import org.pf4j.Extension; import ro.fortsoft.pf4j.Extension;
import org.pf4j.Plugin; import ro.fortsoft.pf4j.Plugin;
import org.pf4j.PluginWrapper; import ro.fortsoft.pf4j.PluginWrapper;
import org.pf4j.demo.api.Greeting; import ro.fortsoft.pf4j.demo.api.Greeting;
/** /**
* A very simple plugin. * A very simple plugin.

4
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"> <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> <parent>
<groupId>org.pf4j</groupId> <groupId>ro.fortsoft.pf4j</groupId>
<artifactId>pom</artifactId> <artifactId>pom</artifactId>
<version>0.1-SNAPSHOT</version> <version>0.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.pf4j.demo</groupId> <groupId>ro.fortsoft.pf4j.demo</groupId>
<artifactId>pom</artifactId> <artifactId>pom</artifactId>
<version>0.1-SNAPSHOT</version> <version>0.1-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>

2
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"> <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> <parent>
<groupId>org.pf4j</groupId> <groupId>ro.fortsoft.pf4j</groupId>
<artifactId>pom</artifactId> <artifactId>pom</artifactId>
<version>0.1-SNAPSHOT</version> <version>0.1-SNAPSHOT</version>
</parent> </parent>

2
pf4j/src/main/java/org/pf4j/DefaultExtensionFinder.java → pf4j/src/main/java/ro/fortsoft/pf4j/DefaultExtensionFinder.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
import java.lang.reflect.AnnotatedElement; import java.lang.reflect.AnnotatedElement;
import java.util.ArrayList; import java.util.ArrayList;

2
pf4j/src/main/java/org/pf4j/DefaultPluginDescriptorFinder.java → pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginDescriptorFinder.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;

11
pf4j/src/main/java/org/pf4j/DefaultPluginManager.java → pf4j/src/main/java/ro/fortsoft/pf4j/DefaultPluginManager.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
import java.io.File; import java.io.File;
import java.io.FilenameFilter; import java.io.FilenameFilter;
@ -22,13 +22,14 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import org.pf4j.util.DirectoryFilter;
import org.pf4j.util.UberClassLoader;
import org.pf4j.util.Unzip;
import org.pf4j.util.ZipFilter;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import ro.fortsoft.pf4j.util.DirectoryFilter;
import ro.fortsoft.pf4j.util.UberClassLoader;
import ro.fortsoft.pf4j.util.Unzip;
import ro.fortsoft.pf4j.util.ZipFilter;
/** /**
* Default implementation of the PluginManager interface. * Default implementation of the PluginManager interface.

5
pf4j/src/main/java/org/pf4j/DependencyResolver.java → pf4j/src/main/java/ro/fortsoft/pf4j/DependencyResolver.java

@ -10,15 +10,16 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.pf4j.util.DirectedGraph;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import ro.fortsoft.pf4j.util.DirectedGraph;
/** /**
* @author Decebal Suiu * @author Decebal Suiu

2
pf4j/src/main/java/org/pf4j/Extension.java → pf4j/src/main/java/ro/fortsoft/pf4j/Extension.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME; import static java.lang.annotation.RetentionPolicy.RUNTIME;

2
pf4j/src/main/java/org/pf4j/ExtensionFinder.java → pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionFinder.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
import java.util.List; import java.util.List;

2
pf4j/src/main/java/org/pf4j/ExtensionPoint.java → pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionPoint.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
/** /**
* @author Decebal Suiu * @author Decebal Suiu

2
pf4j/src/main/java/org/pf4j/ExtensionWrapper.java → pf4j/src/main/java/ro/fortsoft/pf4j/ExtensionWrapper.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
/** /**
* @author Decebal Suiu * @author Decebal Suiu

2
pf4j/src/main/java/org/pf4j/Plugin.java → pf4j/src/main/java/ro/fortsoft/pf4j/Plugin.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;

4
pf4j/src/main/java/org/pf4j/PluginClassLoader.java → pf4j/src/main/java/ro/fortsoft/pf4j/PluginClassLoader.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
import java.net.URL; import java.net.URL;
import java.net.URLClassLoader; import java.net.URLClassLoader;
@ -25,7 +25,7 @@ class PluginClassLoader extends URLClassLoader {
private static final String JAVA_PACKAGE_PREFIX = "java."; private static final String JAVA_PACKAGE_PREFIX = "java.";
private static final String JAVAX_PACKAGE_PREFIX = "javax."; private static final String JAVAX_PACKAGE_PREFIX = "javax.";
private static final String PLUGIN_PACKAGE_PREFIX = "org.pf4j."; private static final String PLUGIN_PACKAGE_PREFIX = "ro.fortsoft.pf4j.";
private PluginManager pluginManager; private PluginManager pluginManager;
private PluginWrapper pluginWrapper; private PluginWrapper pluginWrapper;

2
pf4j/src/main/java/org/pf4j/PluginDescriptor.java → pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptor.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;

2
pf4j/src/main/java/org/pf4j/PluginDescriptorFinder.java → pf4j/src/main/java/ro/fortsoft/pf4j/PluginDescriptorFinder.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
import java.io.File; import java.io.File;

2
pf4j/src/main/java/org/pf4j/PluginException.java → pf4j/src/main/java/ro/fortsoft/pf4j/PluginException.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
/** /**
* An exception used to indicate that a plugin problem occurred. * An exception used to indicate that a plugin problem occurred.

7
pf4j/src/main/java/org/pf4j/PluginLoader.java → pf4j/src/main/java/ro/fortsoft/pf4j/PluginLoader.java

@ -10,18 +10,19 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
import java.io.File; import java.io.File;
import java.io.FilenameFilter; import java.io.FilenameFilter;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.util.Vector; import java.util.Vector;
import org.pf4j.util.DirectoryFilter;
import org.pf4j.util.JarFilter;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import ro.fortsoft.pf4j.util.DirectoryFilter;
import ro.fortsoft.pf4j.util.JarFilter;
/** /**
* Load all informations needed by a plugin. * Load all informations needed by a plugin.

2
pf4j/src/main/java/org/pf4j/PluginManager.java → pf4j/src/main/java/ro/fortsoft/pf4j/PluginManager.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
import java.util.List; import java.util.List;

2
pf4j/src/main/java/org/pf4j/PluginVersion.java → pf4j/src/main/java/ro/fortsoft/pf4j/PluginVersion.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

2
pf4j/src/main/java/org/pf4j/PluginWrapper.java → pf4j/src/main/java/ro/fortsoft/pf4j/PluginWrapper.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j; package ro.fortsoft.pf4j;
/** /**
* A wrapper over plugin instance. * A wrapper over plugin instance.

2
pf4j/src/main/java/org/pf4j/util/DirectedGraph.java → pf4j/src/main/java/ro/fortsoft/pf4j/util/DirectedGraph.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j.util; package ro.fortsoft.pf4j.util;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;

2
pf4j/src/main/java/org/pf4j/util/DirectoryFilter.java → pf4j/src/main/java/ro/fortsoft/pf4j/util/DirectoryFilter.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j.util; package ro.fortsoft.pf4j.util;
import java.io.File; import java.io.File;
import java.io.FileFilter; import java.io.FileFilter;

2
pf4j/src/main/java/org/pf4j/util/ExtensionFilter.java → pf4j/src/main/java/ro/fortsoft/pf4j/util/ExtensionFilter.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j.util; package ro.fortsoft.pf4j.util;
import java.io.File; import java.io.File;
import java.io.FilenameFilter; import java.io.FilenameFilter;

2
pf4j/src/main/java/org/pf4j/util/JarFilter.java → pf4j/src/main/java/ro/fortsoft/pf4j/util/JarFilter.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j.util; package ro.fortsoft.pf4j.util;
/** /**
* File filter that accepts all files ending with .JAR. * File filter that accepts all files ending with .JAR.

2
pf4j/src/main/java/org/pf4j/util/UberClassLoader.java → pf4j/src/main/java/ro/fortsoft/pf4j/util/UberClassLoader.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j.util; package ro.fortsoft.pf4j.util;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;

2
pf4j/src/main/java/org/pf4j/util/Unzip.java → pf4j/src/main/java/ro/fortsoft/pf4j/util/Unzip.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j.util; package ro.fortsoft.pf4j.util;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;

2
pf4j/src/main/java/org/pf4j/util/ZipFilter.java → pf4j/src/main/java/ro/fortsoft/pf4j/util/ZipFilter.java

@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. * specific language governing permissions and limitations under the License.
*/ */
package org.pf4j.util; package ro.fortsoft.pf4j.util;
/** /**
* File filter that accepts all files ending with .ZIP. * File filter that accepts all files ending with .ZIP.

2
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"> <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">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.pf4j</groupId> <groupId>ro.fortsoft.pf4j</groupId>
<artifactId>pom</artifactId> <artifactId>pom</artifactId>
<version>0.1-SNAPSHOT</version> <version>0.1-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>

Loading…
Cancel
Save