| |
|
| ch.ethz.prose.crosscut.Crosscut ch.ethz.prose.crosscut.AbstractCrosscut ch.ethz.prose.crosscut.CatchCut
CatchCut | abstract public class CatchCut extends AbstractCrosscut implements java.io.Serializable(Code) | | Class CatchCut represents a crosscut which cuts across all
points belonging to all classes in the local VM where exceptions
are catch.
There are two ways of using this crosscut:
- override the convenience methods
exceptionThrowAdvice
and exceptionCatchAdvice if you do not want to deal with the
reflective part of join-points.
- override the
joinPointAdvice methods and define void-bodies
for exceptionThrowAdvice and exceptionCatchAdvice .
This second case is recomended only if you need the last bit of speed out
of the system.
version: $Revision: 1.1.1.1 $ author: Philippe Schoch |
Constructor Summary | |
protected | CatchCut() |
CatchCut | protected CatchCut()(Code) | | Constructor
|
CATCH_ARGS | public void CATCH_ARGS()(Code) | | This method must be defined by subclasses. It will be called
each time one of the selected exceptions is catch.
|
doCreateRequest | protected CrosscutRequest doCreateRequest(Class cls)(Code) | | Create a new CrosscutRequest consisting of ExceptionCatchRequests
for each catch exception in each method declared in class cls .
Only one ExceptionCatchRequest per exception class is
generated for a specific CatchCut.
|
insertionAction | public void insertionAction(boolean isBeforeInsertion)(Code) | | |
isPotentialCrosscutClass | protected boolean isPotentialCrosscutClass(Class c)(Code) | | Only a class of supertype 'Throwable' is a potential Exception Catch Crosscut Class
|
|
|
|