lucee.Component coldbox.system.aop.MethodInvocation
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- This object is used when implementing AOP advices. Each advice you create will implement a `invokeMethod()` and receive this object as an argument. You can then use any of the properties in this object to construct your advice. Please see the property documentation below to understand each of the properties. Just remember that in order to continue the execution of the Adviced method you will need to call `proceed()`
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
args
The currently executing method arguments.
|
true
|
false
|
|
any
|
interceptorIndex
The current index of execution.
|
true
|
false
|
|
any
|
interceptorLen
The number of interceptors applied.
|
true
|
false
|
|
any
|
interceptors
The AOP interceptors to execute.
|
true
|
false
|
|
any
|
method
The currently executing method.
|
true
|
false
|
|
any
|
methodMetadata
The current method metadata.
|
true
|
false
|
|
any
|
target
The target of execution.
|
true
|
false
|
|
any
|
targetMapping
The target wirebox mapping.
|
true
|
false
|
|
any
|
targetName
The target shortname.
|
true
|
false
|
Constructor Summary | |
---|---|
init(any method, any args, any methodMetadata, any target, any targetName, any<Mapping> targetMapping, any interceptors)
Constructor. |
Method Summary | |
---|---|
string
|
getArgs()
|
string
|
getInterceptorIndex()
|
string
|
getInterceptorLen()
|
string
|
getInterceptors()
|
string
|
getMethod()
|
string
|
getMethodMetadata()
|
string
|
getTarget()
|
string
|
getTargetMapping()
|
string
|
getTargetName()
|
any
|
incrementInterceptorIndex()
Increment the interceptor index pointer. |
any
|
proceed()
Proceed execution of the method invocation. |
any
|
setArgs(any args)
Set args. |
any
|
setInterceptorIndex(any interceptorIndex)
|
any
|
setInterceptorLen(any interceptorLen)
|
any
|
setInterceptors(any interceptors)
|
any
|
setMethod(any method)
|
any
|
setMethodMetadata(any methodMetadata)
|
any
|
setTarget(any target)
|
any
|
setTargetMapping(any targetMapping)
|
any
|
setTargetName(any targetName)
|
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
method
- The method name that was interceptedargs
- The argument collection that was interceptedmethodMetadata
- The method metadata that was interceptedtarget
- The target object reference that was interceptedtargetName
- The name of the target wired uptargetMapping
- The target's mapping object referenceinterceptors
- The array of interceptors for this invocationProperty Detail |
---|
The currently executing method arguments
access
- publicrequired
- falsereturntype
- anyserializable
- trueThe current index of execution
access
- publicrequired
- falsereturntype
- anyserializable
- trueThe number of interceptors applied
access
- publicrequired
- falsereturntype
- anyserializable
- trueThe AOP interceptors to execute
access
- publicrequired
- falsereturntype
- anyserializable
- trueThe currently executing method
access
- publicrequired
- falsereturntype
- anyserializable
- trueThe current method metadata
access
- publicrequired
- falsereturntype
- anyserializable
- trueThe target of execution
access
- publicrequired
- falsereturntype
- anyserializable
- trueThe target wirebox mapping
access
- publicrequired
- falsereturntype
- anyserializable
- trueThe target shortname
access
- publicrequired
- falsereturntype
- anyserializable
- trueMethod Detail |
---|
Increment the interceptor index pointer
Proceed execution of the method invocation
Set args
args
interceptorIndex
interceptorLen
interceptors
method
methodMetadata
target
targetMapping
targetName