Skip to content
Snippets Groups Projects
Commit b1b5baf1 authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

javadoc

parent 1250c6c2
Branches
Tags
No related merge requests found
...@@ -76,6 +76,14 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti ...@@ -76,6 +76,14 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti
this(configuration, false); this(configuration, false);
} }
/**
* Creates a new {@link Execution} that uses the default listener.
*
* @param configuration
* to be used for the analysis
* @param validationEnabled
* whether or not the validation should be executed
*/
public Execution(final T configuration, final boolean validationEnabled) { public Execution(final T configuration, final boolean validationEnabled) {
this(configuration, validationEnabled, new TerminatingExceptionListenerFactory()); this(configuration, validationEnabled, new TerminatingExceptionListenerFactory());
} }
...@@ -92,6 +100,16 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti ...@@ -92,6 +100,16 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti
this(configuration, false, factory); this(configuration, false, factory);
} }
/**
* Creates a new {@link Execution} that uses a specific listener.
*
* @param configuration
* to be used for the analysis
* @param validationEnabled
* whether or not the validation should be executed
* @param factory
* specific listener for the exception handling
*/
public Execution(final T configuration, final boolean validationEnabled, final IExceptionListenerFactory factory) { public Execution(final T configuration, final boolean validationEnabled, final IExceptionListenerFactory factory) {
this.configuration = configuration; this.configuration = configuration;
this.factory = factory; this.factory = factory;
...@@ -200,7 +218,7 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti ...@@ -200,7 +218,7 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti
* @throws ExecutionException * @throws ExecutionException
* if at least one exception in one thread has occurred within the analysis. The exception contains the pairs of thread and throwable * if at least one exception in one thread has occurred within the analysis. The exception contains the pairs of thread and throwable
* *
* @since 1.1 * @since 2.0
*/ */
public void waitForTermination() { public void waitForTermination() {
try { try {
...@@ -257,7 +275,7 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti ...@@ -257,7 +275,7 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti
* @throws ExecutionException * @throws ExecutionException
* if at least one exception in one thread has occurred within the analysis. The exception contains the pairs of thread and throwable. * if at least one exception in one thread has occurred within the analysis. The exception contains the pairs of thread and throwable.
* *
* @since 1.1 * @since 2.0
*/ */
public void executeBlocking() { public void executeBlocking() {
executeNonBlocking(); executeNonBlocking();
...@@ -268,7 +286,7 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti ...@@ -268,7 +286,7 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti
* This method starts the analysis without waiting for its termination. The method {@link #waitForTermination()} must be called to unsure a correct termination * This method starts the analysis without waiting for its termination. The method {@link #waitForTermination()} must be called to unsure a correct termination
* of the analysis. * of the analysis.
* *
* @since 1.1 * @since 2.0
*/ */
public void executeNonBlocking() { public void executeNonBlocking() {
sendStartingSignal(); sendStartingSignal();
...@@ -323,6 +341,14 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti ...@@ -323,6 +341,14 @@ public final class Execution<T extends Configuration> implements UncaughtExcepti
return traversor.getVisitedStage(); return traversor.getVisitedStage();
} }
/**
* Returns the specified ExceptionListenerFactory
*
* @return
* a given ExceptionListenerFactory instance
*
* @since 2.0
*/
public IExceptionListenerFactory getFactory() { public IExceptionListenerFactory getFactory() {
return factory; return factory;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment