Class Run


  • public class Run
    extends java.lang.Object
    Bind-on-load class runner. This uses a binding loader to compile a binding, then loads and calls the main execution class for an application substituting the classes modified by the binding.
    Version:
    1.0
    Author:
    Dennis M. Sosnoski
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Run()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void addBindings​(java.io.InputStream is, java.util.ArrayList bindings)
      Accumulate list of bindings from stream.
      static void main​(java.lang.String[] args)
      Main method for bind-on-load handling.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BINDING_LIST_RESOURCE

        private static final java.lang.String BINDING_LIST_RESOURCE
        See Also:
        Constant Field Values
      • DEFAULT_BINDING_RESOURCE

        private static final java.lang.String DEFAULT_BINDING_RESOURCE
        See Also:
        Constant Field Values
    • Constructor Detail

      • Run

        private Run()
    • Method Detail

      • addBindings

        private static void addBindings​(java.io.InputStream is,
                                        java.util.ArrayList bindings)
                                 throws java.io.IOException
        Accumulate list of bindings from stream.
        Parameters:
        is - stream to be read for list of bindings (one per line)
        bindings - accumulated collection of bindings
        Throws:
        java.io.IOException
      • main

        public static void main​(java.lang.String[] args)
        Main method for bind-on-load handling.
        Parameters:
        args - command line arguments