|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISafeRunnable
Safe runnables represent blocks of code and associated exception handlers. They are typically used when a plug-in needs to call some untrusted code (e.g., code contributed by another plug-in via an extension).
This interface can be used without OSGi running.
Clients may implement this interface.
Platform.run(ISafeRunnable)
Method Summary | |
---|---|
void |
handleException(java.lang.Throwable exception)
Handles an exception thrown by this runnable's run
method. |
void |
run()
Runs this runnable. |
Method Detail |
---|
void handleException(java.lang.Throwable exception)
run
method. The processing done here should be specific to the
particular usecase for this runnable. Generalized exception
processing (e.g., logging in the platform's log) is done by the
Platform's run mechanism.
exception
- an exception which occurred during processing
the body of this runnable (i.e., in run()
)Platform.run(ISafeRunnable)
void run() throws java.lang.Exception
handleException
method.
java.lang.Exception
- if a problem occurred while running this method.
The exception will be processed by handleException
Platform.run(ISafeRunnable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |