commandbox.system.util

Class ReaderFactory

lucee.Component
    extended by commandbox.system.util.ReaderFactory

Copyright Since 2014 CommandBox by Ortus Solutions, Corp www.coldbox.org | www.ortussolutions.com The logic to create the console reader was hairy enough I've refactored it out into its own file.

Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
  • author : Brad Wood, Luis Majano, Denny Valliant
  •  
    Property Summary
    type property default serializable required
    any CommandCompletor


    • access = public
    • returntype = any
    • inject = CommandCompletor
    true false
    any CommandHighlighter


    • access = public
    • returntype = any
    • inject = CommandHighlighter
    true false
    any CommandParser


    • access = public
    • returntype = any
    • inject = CommandParser
    true false
    any REPLScriptHistoryFile


    • access = public
    • returntype = any
    • inject = REPLScriptHistoryFile@constants
    true false
    any REPLTagHistoryFile


    • access = public
    • returntype = any
    • inject = REPLTagHistoryFile@constants
    true false
    any SignalHandler


    • access = public
    • returntype = any
    • inject = SignalHandler
    true false
    any commandHistoryFile


    • access = public
    • returntype = any
    • inject = commandHistoryFile@constants
    true false
    any homedir


    • access = public
    • returntype = any
    • inject = homedir@constants
    true false
    any systemSettings


    • access = public
    • returntype = any
    • inject = SystemSettings
    true false
    Method Summary
    any getInstance([any inStream], [any outputStream])
         Build a jline console reader instance.
    private any upgradeHistoryFile(string historyFile)
     
    Methods inherited from class lucee.Component
    None

    Property Detail

    CommandCompletor

    property any CommandCompletor

    Attributes:
    access - public
    required - false
    returntype - any
    inject - CommandCompletor
    serializable - true

    CommandHighlighter

    property any CommandHighlighter

    Attributes:
    access - public
    required - false
    returntype - any
    inject - CommandHighlighter
    serializable - true

    CommandParser

    property any CommandParser

    Attributes:
    access - public
    required - false
    returntype - any
    inject - CommandParser
    serializable - true

    REPLScriptHistoryFile

    property any REPLScriptHistoryFile

    Attributes:
    access - public
    required - false
    returntype - any
    inject - REPLScriptHistoryFile@constants
    serializable - true

    REPLTagHistoryFile

    property any REPLTagHistoryFile

    Attributes:
    access - public
    required - false
    returntype - any
    inject - REPLTagHistoryFile@constants
    serializable - true

    SignalHandler

    property any SignalHandler

    Attributes:
    access - public
    required - false
    returntype - any
    inject - SignalHandler
    serializable - true

    commandHistoryFile

    property any commandHistoryFile

    Attributes:
    access - public
    required - false
    returntype - any
    inject - commandHistoryFile@constants
    serializable - true

    homedir

    property any homedir

    Attributes:
    access - public
    required - false
    returntype - any
    inject - homedir@constants
    serializable - true

    systemSettings

    property any systemSettings

    Attributes:
    access - public
    required - false
    returntype - any
    inject - SystemSettings
    serializable - true

    Method Detail

    getInstance

    public any getInstance([any inStream], [any outputStream])

    Build a jline console reader instance

    Parameters:
    inStream - input stream if running externally
    outputStream - output stream if running externally

    upgradeHistoryFile

    private any upgradeHistoryFile(string historyFile)

    Parameters:
    historyFile