Class ScreenLoader

    • Method Detail

      • eval

        public String eval​(PipelineData pipelineData,
                           String name)
                    throws Exception
        Attempts to load and execute the external Screen. This is used when you want to execute a Screen which returns its output via a String instead of out the data.getResponse() value. This allows you to easily chain the execution of Screen modules together.
        Parameters:
        pipelineData - Turbine information.
        name - Name of object that will execute the screen.
        Returns:
        the output of the screen module
        Throws:
        Exception - a generic exception.
      • exec

        public void exec​(PipelineData pipelineData,
                         String name)
                  throws Exception
        Attempts to load and execute the Screen. This is used when you want to execute a Screen which returns its output via the data.getResponse() object.
        Specified by:
        exec in class GenericLoader<Screen>
        Parameters:
        pipelineData - Turbine information.
        name - Name of object that will execute the screen.
        Throws:
        Exception - a generic exception.
      • getInstance

        public static ScreenLoader getInstance()
        The method through which this class is accessed.
        Returns:
        The single instance of this class.