diff --git a/src/main/java/teetime/framework/A4StageAttributeSetter.java b/src/main/java/teetime/framework/A4StageAttributeSetter.java index 5d95bec9e2dbc4a3e0c813cc9a3d303407c3de0a..98373e41c8f687a6644a7fdff87a77377a498240 100644 --- a/src/main/java/teetime/framework/A4StageAttributeSetter.java +++ b/src/main/java/teetime/framework/A4StageAttributeSetter.java @@ -46,7 +46,7 @@ class A4StageAttributeSetter { } private void setAttributes(final Stage threadableStage, final Set<Stage> intraStages) { - threadableStage.setExceptionHandler(configuration.getFactory().getInstance(threadableStage.getOwningThread())); + threadableStage.setExceptionHandler(configuration.getFactory().createInstance(threadableStage.getOwningThread())); // threadableStage.setOwningThread(owningThread); threadableStage.setOwningContext(configuration.getContext()); diff --git a/src/main/java/teetime/framework/exceptionHandling/AbstractExceptionListenerFactory.java b/src/main/java/teetime/framework/exceptionHandling/AbstractExceptionListenerFactory.java index 918478905659f0e6dce4aaf75ee9140a443d8e38..a61f8d9fbc72005d4d3d3b5b097fbdf9a5b8f4a2 100644 --- a/src/main/java/teetime/framework/exceptionHandling/AbstractExceptionListenerFactory.java +++ b/src/main/java/teetime/framework/exceptionHandling/AbstractExceptionListenerFactory.java @@ -25,7 +25,7 @@ public abstract class AbstractExceptionListenerFactory<T extends AbstractExcepti protected abstract T createInstance(); - public T getInstance(final Thread thread) { + public T createInstance(final Thread thread) { T instance = createInstance(); threadExceptionsMap.put(thread, instance.getLoggedExceptions()); return instance;