IMethodCallDecorator Interface
From The Oxygene Language Wiki
This is a Language topic
Feel free to add your notes to this topic below.
This interface has to be implemented for method call aspects. The ProcessMethodCall method gets called for each method this aspect was applied to. Method Aspect classes have to have the MethodAspectAttribute applied to them on the class and need a public constructor with no parameters for the compiler to be able to instantiate them.
IMethodCallDecorator = public interface(IBaseAspect)
Namespace: Cirrus Namespace
Members
| | |
|---|---|
| ProcessMethodCall(aContext: IContext; aMethod IMethod; aValueParameterizedValue): Value; |
Called for each call to the method this aspect applies to. The aContext parameter contains the current method and type the method was called from, as well as access to the services instance. The aMethod parameter is the method that was actually called, useful when an aspect applies to multiple methods. The aValue parameter contains the actual call. This could be a ProcValue instance for regular calls or a NewValue for constructor calls. |
See Also
- Cirrus
- External Links:
- Prism Aspects to Help with Monobjc Development (RemObjects Blogs)
- MethodAspectAttribute Class
- IBaseAspect Interface
Area: Oxygene Language
Compiler version: Oxygene 5
Language Glossary — Keywords — Types — FAQ — How To