File tree Expand file tree Collapse file tree 3 files changed +48
-4
lines changed
src/main/java/org/intellimate/izou/sdk Expand file tree Collapse file tree 3 files changed +48
-4
lines changed Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 1111 */
1212@ Extension
1313public 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
Original file line number Diff line number Diff line change 11package org .intellimate .izou .sdk .addon ;
22
33import ro .fortsoft .pf4j .Plugin ;
4+ import ro .fortsoft .pf4j .PluginException ;
45import 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}
You can’t perform that action at this time.
0 commit comments