Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ch.ethz.prose
Class DefaultAspect  view DefaultAspect download DefaultAspect.java

java.lang.Object
  extended bych.ethz.prose.Aspect
      extended bych.ethz.prose.DefaultAspect
All Implemented Interfaces:
Insertable, java.io.Serializable
Direct Known Subclasses:
ExtensionInsertionTest.ConcreteExtension, ExtensionInsertionTest.ConcreteExtension1, ExtensionInsertionTest.ModParExtension, ExtensionInsertionTest.NonPubExtension, ExtensionInsertionTest.SimpleExtension, FieldNotificationTest.TestExtension, FieldNotificationTestWithOutput.TestExtension, LocalExtensionManagerTest.Extension1, LocalExtensionManagerTest.Extension2, LocalExtensionManagerTest.Extension3, LocalExtensionManagerTest.TestExtension1, LocalExtensionManagerTest.TestExtension2

public abstract class DefaultAspect
extends Aspect

Class DefaultAspect provides a declarative way to define an extension. For example, the following code

 class MyExtension extends DefaultAspect
 {
   Crosscut c1 = new MethodCut()
                 {
                    public void METHOD_ARGS(ANY thisO,REST params) {}
                 }
   Crosscut c2 = new MethodCut{}
                 {
                    public void adviceMethod(Object thisO, Object[] parms){}
                 }.specializeWith(  ( MethodS.BEFORE1)       .AND
                                    ( MethodS.named("Foo"))       );

 }

 
would produce an extension which returns a list of two crosscuts c1 and c2.

Version:
$Revision: 1.1.1.1 $

Field Summary
 
Fields inherited from class ch.ethz.prose.Aspect
aspectID, birthDayCount, priority
 
Constructor Summary
DefaultAspect()
           
 
Method Summary
protected  ch.ethz.prose.crosscut.Crosscut[] crosscuts()
          This is a template meethod.
 
Methods inherited from class ch.ethz.prose.Aspect
associateTo, equals, generateUniqueAssociation, getAssociatedObject, getCrosscuts, getPriority, hashCode, insertionAction, setPriority, toString, withdrawalAction
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultAspect

public DefaultAspect()
Method Detail

crosscuts

protected ch.ethz.prose.crosscut.Crosscut[] crosscuts()
Description copied from class: Aspect
This is a template meethod. Users must define this method to return a list of crosscut objects that belong to this aspect

Specified by:
crosscuts in class Aspect