java.lang.Object
org.nustaq.kontraktor.webapp.javascript.minbingen.MB2JS

public class MB2JS
extends java.lang.Object
generates JS wrappers for a set of actors and pojos capable to en/decode MinBin serialized messages. Though minbin is ~2 times more efficient than JSon regarding speed and bandwith, focus is mostly on Json currently. However it might an option switching to MinBin encoding in case of serious performance related trouble (minor changes in the JS client required then)
  • Constructor Summary

    Constructors 
    Constructor Description
    MB2JS()  
  • Method Summary

    Modifier and Type Method Description
    static void Gen​(java.lang.String packagesToScanColonSeparated, java.lang.String outputFile)  
    void receiveContext​(java.lang.Object o, java.io.PrintStream out)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • Gen

      public static void Gen​(java.lang.String packagesToScanColonSeparated, java.lang.String outputFile) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • receiveContext

      public void receiveContext​(java.lang.Object o, java.io.PrintStream out) throws java.lang.Exception
      Throws:
      java.lang.Exception