| java.lang.Object ch.ethz.prose.LocalAspectManager
All known Subclasses: ch.ethz.prose.SecureLocalAspectManager, ch.ethz.prose.jvmai.jikesrvm.advice_weaver.LocalAdviceAspectManager, ch.ethz.prose.LocalHotSwapAspectManager,
LocalAspectManager | public class LocalAspectManager implements AspectManager,ClassLoadListener(Code) | | Class LocalAspectManager extends AspectManager and implements a local
extension manager. Upon creation, a LocalAspectManager registers
itself as a listener of class load events into the current JoinPointManager.
version: $Revision: 1.2 $ author: Andrei Popovici |
Inner Class :static class TransactionGroup | |
Constructor Summary | |
protected | LocalAspectManager(boolean isConnected, JVMAspectInterface ai) Create a new LocalAspectManager
with no aspects inserted and create a JoinPointManager . |
Method Summary | |
public void | abort(Object txId) | public void | classLoaded(Class newClass) This method is called every time a new class has been successfully
loaded and prepared into the system. | public void | commit(Object txId) | protected void | createJoinPointManager(boolean isConnected, JVMAspectInterface ai) This Method is going to be overwritten from a subclass of LocalAspectManager
that wants to register its own JoinPointManager . | public synchronized void | doInsertExtension(Aspect ext) Insert the extension ext into the extension
manager. | public synchronized void | doWithdrawExtension(Aspect ext) | protected void | finalize() Remove all inserted extensions from this extension manager, disconnect the joinpoint manager
from the JVMAI System and deconstruct it. | public List | getAllAspects() Return the list of extensions currently
inserted into the system. | public JoinPointManager | getJoinPointManager() Return the JoinPointManager of this extension manager. | public void | insert(Aspect x, Object txId) | public void | insert(Aspect x) | public boolean | isConnectedToVM() Return the boolean status that indicates if this extension manager is connected to the
VM through its joinpoint manager or if it is the test manager and has no connection to the VM. | public synchronized void | startup() This method has to be called before an AspectManager is used. | public synchronized void | teardown() This method has to be called before an AspectManager is destroyed. | public void | withdraw(Aspect x, Object txId) | public void | withdraw(Aspect x) |
LocalAspectManager | protected LocalAspectManager(boolean isConnected, JVMAspectInterface ai)(Code) | | Create a new LocalAspectManager
with no aspects inserted and create a JoinPointManager .
register this extension manager as a class load listener
of the current JoinPointManager.
|
classLoaded | public void classLoaded(Class newClass)(Code) | | This method is called every time a new class has been successfully
loaded and prepared into the system. It implements the functionality
needed to update the extensions currently inserted into this extension
to the current state of the system. For example, if a new class is loaded
that contains join-points cross-cut by an existing crosscut E.C, the
crosscut in question will be added as a listener of the JoinPointManager.
|
createJoinPointManager | protected void createJoinPointManager(boolean isConnected, JVMAspectInterface ai)(Code) | | This Method is going to be overwritten from a subclass of LocalAspectManager
that wants to register its own JoinPointManager .
|
doInsertExtension | public synchronized void doInsertExtension(Aspect ext) throws AspectManagerException(Code) | | Insert the extension ext into the extension
manager. This involves registering the ext 's
crosscut into the current JoinPointManager .
|
doWithdrawExtension | public synchronized void doWithdrawExtension(Aspect ext)(Code) | | Unregister the crosscuts belonging to ext
from the corresponding JoinPointManager
|
finalize | protected void finalize()(Code) | | Remove all inserted extensions from this extension manager, disconnect the joinpoint manager
from the JVMAI System and deconstruct it.
|
getAllAspects | public List getAllAspects()(Code) | | Return the list of extensions currently
inserted into the system.
|
getJoinPointManager | public JoinPointManager getJoinPointManager()(Code) | | Return the JoinPointManager of this extension manager.
|
isConnectedToVM | public boolean isConnectedToVM()(Code) | | Return the boolean status that indicates if this extension manager is connected to the
VM through its joinpoint manager or if it is the test manager and has no connection to the VM.
|
startup | public synchronized void startup()(Code) | | This method has to be called before an AspectManager is used.
|
teardown | public synchronized void teardown()(Code) | | This method has to be called before an AspectManager is destroyed.
|
|
|