+ Start a Discussion

Does 'foce.com' have 'Aspect Oriented Programming'?

When using force.com technologies (e.g. Apex or the point-and-click app logic),  is there support for Aspect Oriented Programming?
For example I'm looking for an easy way to inject my custom code before/after  major business functions, in order to measure how long they took. Or in order to audit them.

Maros SitkoMaros Sitko
Pobably you should look at the triggers.  A trigger is a piece of code that executes before or after records of a particular type are inserted, updated, or deleted from the Force.com platform database. http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_qs_trigger.htm

Maros Sitko
Salesforce Developer
www.cassacloud.com (http://www.cassacloud.com" target="_blank)
You will have to write something on your own.
When I have to time something, I have to start and stop the timers.
If I need to store these times, I save first to a variable, then save the variable.