|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectalt.jiapi.event.EventProducer
alt.jiapi.event.ExceptionEventProducer
public class ExceptionEventProducer
This class registers itself to Jiapi runtime and tracks Exception related events. When such an event happens, each registered listener will notified.
Constructor Summary | |
---|---|
ExceptionEventProducer(InstrumentationDescriptor id)
Constructor. |
|
ExceptionEventProducer(InstrumentationDescriptor id,
java.lang.String resolution)
Constructor. |
Method Summary | |
---|---|
void |
addExceptionListener(ExceptionListener fl)
Adds a ExceptionListener. |
void |
catchTrapped(java.lang.Object sourceObject,
java.lang.String exceptionName)
This method is called by the Jiapi runtime. |
void |
catchTrapped(java.lang.Object sourceObject,
java.lang.String exceptionName,
java.lang.Object target)
This method is called by the Jiapi runtime. |
protected void |
fireCatchEvent(java.lang.Object sourceObject,
java.lang.String exceptionName,
java.lang.Object target)
Fires an event when exception has been caught. |
void |
removeExceptionListener(ExceptionListener fl)
Removes a ExceptionListener. |
Methods inherited from class alt.jiapi.event.EventProducer |
---|
getResolutions, isProtected, isProtected, match, protect, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExceptionEventProducer(InstrumentationDescriptor id)
id
- Instrumentation decsriptor, that this ExceptionEventProducer
registers itself to.public ExceptionEventProducer(InstrumentationDescriptor id, java.lang.String resolution)
catch(....)
statement. This means, that if one is
catching java.lang.Exception
, and
java.lang.ClassNotFoundException
is trapped, the former
is used in resolution comparison.
id
- Instrumentation decsriptor, that this ExceptionEventProducer
registers itself to.resolution
- Resolution, that is used further to select which
Exceptions will trigger events to be produced.Method Detail |
---|
public void addExceptionListener(ExceptionListener fl)
fl
- a ExceptionListenerpublic void catchTrapped(java.lang.Object sourceObject, java.lang.String exceptionName)
public void catchTrapped(java.lang.Object sourceObject, java.lang.String exceptionName, java.lang.Object target)
protected void fireCatchEvent(java.lang.Object sourceObject, java.lang.String exceptionName, java.lang.Object target)
target
- Target objectmethodName
- Name of the methodpublic void removeExceptionListener(ExceptionListener fl)
fl
- a ExceptionListener
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |