wirebox.system.async.proxies

Class Function

lucee.Component
    extended by wirebox.system.async.proxies.BaseProxy
      extended by wirebox.system.async.proxies.Function
Direct Known Subclasses:
FutureFunction

Functional Interface that maps to java.util.function.Function See https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any f, [boolean debug='false'], [boolean loadAppContext='true'])
          Constructor.
    Method Summary
    any andThen([any after])
    any apply([any t])
         Represents a function that accepts one argument and produces a result.
    any compose([any before])
    any identity()
     
    Methods inherited from class wirebox.system.async.proxies.BaseProxy
    err, getCFMLContext, getConcurrentEngineLockName, getCurrentThread, getDebug, getLoadAppContext, getSystem, getTarget, getThread, getThreadName, loadContext, out, setDebug, setLoadAppContext, setSystem, setTarget, setThread, unLoadContext
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

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

    Constructor

    Parameters:
    f - The lambda or closure to be used in the apply() method
    debug - Add debugging or not
    loadAppContext - By default, we load the Application context into the running thread. If you don't need it, then don't load it.

    Method Detail

    andThen

    public any andThen([any after])

    Parameters:
    after

    apply

    public any apply([any t])

    Represents a function that accepts one argument and produces a result.

    Parameters:
    t

    compose

    public any compose([any before])

    Parameters:
    before

    identity

    public any identity()