org.xvsm.internal
Class AspectManager

Package class diagram package AspectManager
java.lang.Object
  extended by org.xvsm.internal.AspectManager

public class AspectManager
extends java.lang.Object

Author:
Christian Schreiber, Michael Proestler

Constructor Summary
AspectManager()
          Default constructor.
 
Method Summary
 java.lang.String addAspect(IPoint p, IAspect aspect)
          Adds a new Aspect.
 void execute(AspectContext c)
          Runs all aspects which have been registered for the IPoint defined in c.
 void removeAspect(IPoint p, java.net.URI uri)
          Removes an aspect.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AspectManager

public AspectManager()
Default constructor.

Method Detail

addAspect

public java.lang.String addAspect(IPoint p,
                                  IAspect aspect)
Adds a new Aspect.

Parameters:
p - the ipoint for the new aspect.
aspect - the new aspect.
Returns:
the identifier of the aspect

removeAspect

public void removeAspect(IPoint p,
                         java.net.URI uri)
Removes an aspect.

Parameters:
p - the ipoint where the aspect shall be removed.
uri - the uri of the aspect which shall be removed.

execute

public void execute(AspectContext c)
             throws AspectNotOkException,
                    AspectRescheduleException,
                    AspectSkipException
Runs all aspects which have been registered for the IPoint defined in c.

Parameters:
c - the AspectContext.
Throws:
AspectNotOkException - thrown if the operation has to be rescheduled.
AspectRescheduleException - thrown if the operation has to be undone and the transaction has to be rolled back.
AspectSkipException - thrown if the operation shall be skiped.


Copyright © 2009. All Rights Reserved.