coldbox.system.aop.aspects

Class MethodLogger

lucee.Component
    extended by coldbox.system.aop.aspects.MethodLogger
All Implemented Interfaces:
MethodInterceptor

Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- A simple interceptor that logs method calls and their results

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


    • access = public
    • returntype = any
    • inject = logbox:logger:{this}
    true false
    boolean logResults
          Log results.

    • access = public
    • returntype = any
    true true false
    Constructor Summary
    init([boolean logResults='true'])
          Constructor.
    Method Summary
    string getLog()
    string getLogResults()
    any invokeMethod(any<MethodInvocation> invocation)
         Invoke an AOP method invocation.
    any setLog(any log)
    any setLogResults(boolean logResults)
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init([boolean logResults='true'])

    Constructor

    Parameters:
    logResults - Log results or not

    Property Detail

    log

    property any log

    Attributes:
    access - public
    required - false
    returntype - any
    inject - logbox:logger:{this}
    serializable - true

    logResults

    property boolean logResults = [true]

    Log results

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

    Method Detail

    getLog

    public string getLog()


    getLogResults

    public string getLogResults()


    invokeMethod

    public any invokeMethod(any<MethodInvocation> invocation)

    Invoke an AOP method invocation

    Specified by:
    invokeMethod in interface MethodInterceptor
    Parameters:
    invocation - The invocation object

    setLog

    public any setLog(any log)

    Parameters:
    log

    setLogResults

    public any setLogResults(boolean logResults)

    Parameters:
    logResults