Contents: MashupHub API Reference : Mashup Center 2.0
Plug-ins can be developed using any Java development environment. MashupHub provides a Java Archive (JAR), mhubapi.jar
that contains all the interfaces and classes needed to compile a plug-in implementation. The JAR can be found at http://yourhostandport/mashuphub/client/doc/api/mhubapi.jar
Javadoc for the plug-in classes is found in the MashupHub image at the URL http://yourhostandport/mashuphub/client/doc/javadoc/index.html
. A sample plug-in implementation can be found in the deployed MashupHub environment at in the default installation in this directory:
Installing a new plug-in and making it active in MashupHub is an administrator task. The administrator must place the plug-in zip file in the <WebApplication>\\WEB-INF\\plugins
folder. The <WebApplication>
folder is the directory where MashupHub Web applications are installed. In the default installation it is at <install-dir>\\installedApps\\Mashup Hub.ear\\mashuphub-enterprise.war\\WEB-INF\\plugins
. The plug-in is identified by the name of its zip file. The file name must be the same as its java package name, such as com.myco.myplugin.zip
. The administrator must restart the MashupHub Web application to activate the new plug-in.
When the zip file for the plug-in is removed from the <WebApplication>/WEB-INF/plugins
folder and MashupHub is restarted, the plug-in is uninstalled, and all of its files are removed and catalog entries defined using this plug-are deleted. System plug-ins cannot be uninstalled.
To upgrade a plug-in, place a newer version of the plug-in package in the <WebApplication>/WEB-INF/plugins
directory. MashupHub will check the time stamp of the file to determine if the zip file is newer. The MashupHub Web application must be restarted to activate the new version.
Parent topic: Plugin API : Mashup Center 2.0