Skip to content

Commit 3e2a180

Browse files
committed
updated to versin 0.17.1 and fixed a couple bugs
1 parent 06da4b2 commit 3e2a180

File tree

3 files changed

+48
-4
lines changed

3 files changed

+48
-4
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.intellimate.izou</groupId>
88
<artifactId>sdk</artifactId>
9-
<version>0.17.0</version>
9+
<version>0.17.1</version>
1010
<name>IzouSDK</name>
1111
<description>the sdk used to program for izou</description>
1212
<url>https://github.com/intellimate/IzouSDK</url>
@@ -60,7 +60,7 @@
6060
<dependency>
6161
<groupId>org.intellimate.izou</groupId>
6262
<artifactId>izou</artifactId>
63-
<version>1.15.0</version>
63+
<version>1.15.2</version>
6464
</dependency>
6565
<dependency>
6666
<groupId>commons-lang</groupId>

src/main/java/org/intellimate/izou/sdk/ZipFileManagerImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
*/
1212
@Extension
1313
public class ZipFileManagerImpl extends ZipFileManager {
14+
/**
15+
* Wrapper of the plugin.
16+
*/
17+
private PluginWrapper wrapper;
18+
1419
/**
1520
* Constructor to be used by plugin manager for plugin instantiation.
1621
* Your plugins have to provide constructor with this exact signature to
Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,54 @@
11
package org.intellimate.izou.sdk.addon;
22

33
import ro.fortsoft.pf4j.Plugin;
4+
import ro.fortsoft.pf4j.PluginException;
45
import ro.fortsoft.pf4j.PluginWrapper;
56

67
/**
78
* This class must be extended for an AddOn to work properly.
89
* It is used to identify the zip Files as candidates for AddOns
910
*/
1011
@SuppressWarnings("WeakerAccess")
11-
public abstract class ZipFileManager extends Plugin {
12+
public abstract class ZipFileManager implements Plugin {
13+
/**
14+
* Wrapper of the plugin.
15+
*/
16+
private PluginWrapper wrapper;
17+
18+
/**
19+
* Constructor to be used by plugin manager for plugin instantiation.
20+
* Your plugins have to provide constructor with this exact signature to
21+
* be successfully loaded by manager.
22+
*
23+
* @param wrapper the PluginWrapper to assign the ZipFileManager to
24+
*/
1225
public ZipFileManager(PluginWrapper wrapper) {
13-
super(wrapper);
26+
if (wrapper == null) {
27+
throw new IllegalArgumentException("Wrapper cannot be null");
28+
}
29+
30+
this.wrapper = wrapper;
31+
}
32+
33+
/**
34+
* Retrieves the wrapper of this plug-in.
35+
*/
36+
@Override
37+
public final PluginWrapper getWrapper() {
38+
return wrapper;
39+
}
40+
41+
/**
42+
* Start method is called by the application when the plugin is loaded.
43+
*/
44+
@Override
45+
public void start() throws PluginException {
46+
}
47+
48+
/**
49+
* Stop method is called by the application when the plugin is unloaded.
50+
*/
51+
@Override
52+
public void stop() throws PluginException {
1453
}
1554
}

0 commit comments

Comments
 (0)