coldbox.system.aop.aspects

Class MethodLogger

railo-context.Component
        extended by coldbox.system.aop.aspects.MethodLogger
Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    All Implemented Interfaces:
    MethodInterceptor

    A simple interceptor that logs method calls and their results

    Property Summary
    type property default serializable required
    any log


    • inject = logbox:logger:{this}
    true false
    Constructor Summary
    init([boolean logResults='true'])
          Constructor.
    Method Summary
    any invokeMethod(any<MethodInvocation> invocation)
         Invoke an AOP method invocation.
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

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

    Constructor

    Parameters:
    logResults - Do we log results or not?

    Property Detail

    log

    property any log

    Attributes:
    required - false
    inject - logbox:logger:{this}
    serializable - true

    Method Detail

    invokeMethod

    public any invokeMethod(any<MethodInvocation> invocation)

    Invoke an AOP method invocation

    Specified by:
    invokeMethod in interface MethodInterceptor
    Parameters:
    invocation - The method invocation object: coldbox.system.aop.MethodInvocation