Class BasicUI


  • public class BasicUI
    extends AbstractUI
    Provides a basic command line UI for core functionality in org.daisy.braille.
    Author:
    Joel HÃ¥kansson
    • Constructor Detail

      • BasicUI

        public BasicUI​(java.lang.String[] args)
        Creates a new Basic UI
        Parameters:
        args - the application arguments
    • Method Detail

      • setPluginsDir

        public void setPluginsDir​(java.io.File dir)
        Sets the context class loader to an URLClassLoader containing the jars found in the specified path.
        Parameters:
        dir - the directory to search for jar-files.
      • run

        public void run()
                 throws java.lang.Exception
        Runs the application.
        Throws:
        java.lang.Exception - if something bad happens
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Command line entry point
        Parameters:
        args - the application arguments
        Throws:
        java.lang.Exception
      • getName

        public java.lang.String getName()
        Description copied from class: AbstractUI
        Gets the name for the UI
        Specified by:
        getName in class AbstractUI
        Returns:
        returns the UI name
      • getRequiredArguments

        public java.util.List<AbstractUI.Argument> getRequiredArguments()
        Description copied from class: AbstractUI
        Gets required arguments
        Specified by:
        getRequiredArguments in class AbstractUI
        Returns:
        returns a list of required arguments that can be passed to the UI on startup