Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
examples [2009/09/16 06:04] aspectscript |
examples [2010/05/12 01:28] (current) aspectscript |
====== Examples ====== | ====== Examples ====== |
| |
The examples are based on a social networking website: [[http://www.facebook.com|Facebook]] | This page presents all the examples of the "AspectScript: Expressive Aspects for the Web" AOSD'10 paper (see the [[publications]] page). |
| In these examples, we implement a number of extra functionalities to [[http://www.facebook.com|Facebook]], a representative Web-2.0 application. For each case, an aspect-oriented solution with AspectScript enables a modular and straightforward specification. |
| |
* [[http://www.dcc.uchile.cl/~pleger/js/aspectscript/paperExamples/example1/| Removing tags in an album]]. A simple example about the usefulness of AspectScript. | * [[examples/example1|A Simple Example]]. This simple example illustrates how to define and deploy a simple aspect. |
* [[http://www.dcc.uchile.cl/~pleger/js/aspectscript/paperExamples/example2/| Matching Users]]. An example about how building trace pointcuts using AspectScript. | * [[examples/example2|Pointcuts: Matching Sequences]]. An example about how to match simple sequences using higher-order pointcuts in AspectScript. |
* Avoiding Malicious Actions: | * [[examples/example3|Giving Life to Javascript Values]]. An example about how to introducing basic support for reactive values. |
* [[http://www.dcc.uchile.cl/~pleger/js/aspectscript/paperExamples/example3-1/| Avoiding Malicious Actions using Deployment Dynamic of Aspects]]. An example about the deployment dynamic of aspects in AspectScript. | * [[examples/example4|Access Control with Scoping Strategies]]. An example about how to introducing basic support for access control. |
* [[http://www.dcc.uchile.cl/~pleger/js/aspectscript/paperExamples/example3-2/| Avoiding "Pro" Malicious Actions using Scoping Strategies]]. An example about the deployment dynamic of aspect using scoping strategies in AspectScript. | * [[examples/example5|Identifying New Kinds of Events]]. An example about how to identify custom events in code. |
* [[http://www.dcc.uchile.cl/~pleger/js/aspectscript/paperExamples/example4/| Updating Messages Using Reactive Objects]]. Rective features in JavaScript using AspectScript. | |
* [[http://www.dcc.uchile.cl/~pleger/js/aspectscript/paperExamples/example2/| Blocking Users]]. An example about higher-order aspects in AspectScript. | |
| |
Apart from that, you can use tests that are available in AspectScript as examples. | |