...
Create the different Java files required for the type of plugin you want to create. See the chapters describing each plugin for further information.
Compile all the Java files for your plugin into classes:
Code Block > javac -classpath $CLASSPATH com/mycompany/myagent/*.java
Note |
---|
Caution! |
...
Creating a User-Defined Package
In order to To insert the *.jar file into
MediationZone, a package containing the jar file must first be created. A package gives the *.jar file a name and a version. The mzsh pcreate
command creates a code package used for composing packages (.mzp)
...
to create additional functionality and updates. The name and version will be visible in the About window once the new package has been committed into the system.
A package is created using the pcreate
command in the mzsh Command Line Tool:
Code Block |
---|
usage: pcreate <name> <version> <package-file> [-level <default level>] [-revision <revision> ] [-repository <repository> ] [-hidden] [[-level <level name>] file=<file-to-include> ... ] [-osgi <true/false>] [-exported <export-version> file=<jar file>] For Private Cloud, AWS or when you do not have a local installation, do: java -jar $DEVKIT_JAR pcreate ... |
Argument | Description |
---|---|
| The name of the package |
| The version string of the package |
| The resulting package file name |
| Specifies if this software should support |
updates to a running system. The default level can either be Note! Not all kinds of software using the Development Toolkit can be updated and also that a third-party library being used by the software may or may not support the execution level. | |||||||
| Used to show the revision number from which the | ||||||
| Used to show the repository from which the | ||||||
| Used if the | ||||||
| The level name can either be platform or execution. Each filename to be included can optionally be preceded by a level. | ||||||
|
Use OSGi bundling when your DTK plugin depends on third-party libraries that you need to include in the MZP, so they do not cause any conflicts with the rest of the system. Only the Java packages explicitly exported will be visible to MediationZone. To specify which Java packages to export, use the following options:
The default value is | ||||||
| When the com.mycompany.myagent1,com.mycompany.myagent2
| ||||||
| This argument will export all Java packages contained within the specified JAR file when used with the argument
|
Committing a User-Defined Package
...