coldbox.system.async.proxies

Class BaseProxy

lucee.Component
    extended by coldbox.system.async.proxies.BaseProxy
Direct Known Subclasses:
BiConsumer , BiFunction , Consumer , Function , Runnable , Supplier

Functional interface base dynamically compiled via dynamic proxy

Class Attributes:
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any System
          java.

    • access = public
    • returntype = any
    true false
    any Thread
          java.

    • access = public
    • returntype = any
    true false
    boolean debug
          Debug Mode or not.

    • access = public
    • returntype = any
    true false
    boolean loadAppContext
          Are we loading the CFML app context or not, default is true.

    • access = public
    • returntype = any
    true false
    any target
          The target function to be applied via dynamic proxy to the required Java interface(s).

    • access = public
    • returntype = any
    true false
    Constructor Summary
    init(any target, [boolean debug='false'], [boolean loadAppContext='true'])
          Constructor.
    Method Summary
    any err(any var)
         Utility to send to output to console from a runnable via the error stream.
    any getCFMLContext()
         This function is used for the engine to compile the page context bif into the page scope,.
    any getConcurrentEngineLockName()
         Engine-specific lock name.
    any getCurrentThread()
         Get the current thread java object.
    string getDebug()
    string getLoadAppContext()
    string getSystem()
    string getTarget()
    string getThread()
    any getThreadName()
         Get the current thread name.
    any loadContext()
         Ability to load the context into the running thread.
    any out(any var)
         Utility to send to output to console from a runnable.
    any setDebug(boolean debug)
    any setLoadAppContext(boolean loadAppContext)
    any setSystem(any System)
    any setTarget(any target)
    any setThread(any Thread)
    any unLoadContext()
         Ability to unload the context out of the running thread.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any target, [boolean debug='false'], [boolean loadAppContext='true'])

    Constructor

    Parameters:
    target - The target function to be applied via dynamic proxy to the required Java interface(s)
    debug - Add debugging messages for monitoring
    loadAppContext - By default, we load the Application context into the running thread. If you don't need it, then don't load it.

    Property Detail

    System

    property any System

    java.lang.System

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

    Thread

    property any Thread

    java.lang.Thread

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

    debug

    property boolean debug

    Debug Mode or not

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

    loadAppContext

    property boolean loadAppContext

    Are we loading the CFML app context or not, default is true

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

    target

    property any target

    The target function to be applied via dynamic proxy to the required Java interface(s)

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

    Method Detail

    err

    public any err(any var)

    Utility to send to output to console from a runnable via the error stream

    Parameters:
    var - Variable/Message to send

    getCFMLContext

    public any getCFMLContext()

    This function is used for the engine to compile the page context bif into the page scope, if not, we don't get access to it.


    getConcurrentEngineLockName

    public any getConcurrentEngineLockName()

    Engine-specific lock name. For Adobe, lock is shared for this CFC instance. On Lucee, it is random (i.e. not locked). This singlethreading on Adobe is to workaround a thread safety issue in the PageContext that needs fixed. Amend this check once Adobe fixes this in a later update


    getCurrentThread

    public any getCurrentThread()

    Get the current thread java object


    getDebug

    public string getDebug()


    getLoadAppContext

    public string getLoadAppContext()


    getSystem

    public string getSystem()


    getTarget

    public string getTarget()


    getThread

    public string getThread()


    getThreadName

    public any getThreadName()

    Get the current thread name


    loadContext

    public any loadContext()

    Ability to load the context into the running thread


    out

    public any out(any var)

    Utility to send to output to console from a runnable

    Parameters:
    var - Variable/Message to send

    setDebug

    public any setDebug(boolean debug)

    Parameters:
    debug

    setLoadAppContext

    public any setLoadAppContext(boolean loadAppContext)

    Parameters:
    loadAppContext

    setSystem

    public any setSystem(any System)

    Parameters:
    System

    setTarget

    public any setTarget(any target)

    Parameters:
    target

    setThread

    public any setThread(any Thread)

    Parameters:
    Thread

    unLoadContext

    public any unLoadContext()

    Ability to unload the context out of the running thread