eu.larkc.core.pluginManager.remote.Servlet.Tomcat.pluginconverter
Class Convert

java.lang.Object
  extended by eu.larkc.core.pluginManager.remote.Servlet.Tomcat.pluginconverter.Convert

public class Convert
extends java.lang.Object

Class to convert .larkc plugin files to .war files. This is necessary in the process of wrapping LarKC plug-ins inside servlet containers.

Author:
Barry Bishop

Constructor Summary
Convert(java.lang.String inputLarkc, java.lang.String outputWar, java.lang.String pluginClass)
           Takes one .larkc file and converts it to the specified .war file.
 
Method Summary
static void main(java.lang.String[] args)
          Enables converting from the command line.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Convert

public Convert(java.lang.String inputLarkc,
               java.lang.String outputWar,
               java.lang.String pluginClass)

Takes one .larkc file and converts it to the specified .war file. The extension has to be specified with both the inputLarkc and the outputWar files. Further, the plugin class has to be provided as well as the plugin type.

Example:

Convert("SindiceTriplePatternIdentifier.larkc", "SindiceTriplePatternIdentifier.war", "eu.larkc.plugin.identify.sindice.SindiceTriplePatternIdentifier", "identifier")

Parameters:
inputLarkc - the input file to convert. Has to be a LarKC plugin file (.larkc)
outputWar - the target output .war file
pluginClass - full plug-in class name. E.g. eu.larkc.plugin.identify.sindice.SindiceTriplePatternIdentifier
Method Detail

main

public static void main(java.lang.String[] args)
Enables converting from the command line. Parameters are the same order as in the constructor: input .larkc file, output .war file, plugin class, plugin type. The pluginType will be verified to be one of data_transformer, query_transformer, reasoner, identifier, selecter, decider .

Parameters:
args - arguments
See Also:
#Convert(String, String, String, String)