diff --git a/src/main/java/teetime/framework/Analysis.java b/src/main/java/teetime/framework/Analysis.java index 01cefe37fa0b4915a95a6396f3a69da8cc747650..0a70129010cc5f913330017db494013d4abcef69 100644 --- a/src/main/java/teetime/framework/Analysis.java +++ b/src/main/java/teetime/framework/Analysis.java @@ -126,7 +126,7 @@ public final class Analysis implements UncaughtExceptionHandler { } for (Stage stage : threadableStageJobs) { AbstractExceptionListener newListener; - newListener = factory.newHandlerInstance(); + newListener = factory.create(); switch (stage.getTerminationStrategy()) { case BY_SIGNAL: { final Thread thread = new Thread(new RunnableConsumerStage(stage, newListener)); diff --git a/src/main/java/teetime/framework/exceptionHandling/IExceptionListenerFactory.java b/src/main/java/teetime/framework/exceptionHandling/IExceptionListenerFactory.java index 56e93d4fcfb3ddb9291d0cf65e04a36227132713..4ef640d4b0048905b7892b13635a408f9415317d 100644 --- a/src/main/java/teetime/framework/exceptionHandling/IExceptionListenerFactory.java +++ b/src/main/java/teetime/framework/exceptionHandling/IExceptionListenerFactory.java @@ -2,6 +2,6 @@ package teetime.framework.exceptionHandling; public interface IExceptionListenerFactory { - public AbstractExceptionListener newHandlerInstance(); + public AbstractExceptionListener create(); } diff --git a/src/main/java/teetime/framework/exceptionHandling/IgnoringExceptionListenerFactory.java b/src/main/java/teetime/framework/exceptionHandling/IgnoringExceptionListenerFactory.java index 9d3423b2daaeb6428c44f9ff5a7b1a73a2a793f7..c5ad9289abf3088b263ec7395682315d818cd6a4 100644 --- a/src/main/java/teetime/framework/exceptionHandling/IgnoringExceptionListenerFactory.java +++ b/src/main/java/teetime/framework/exceptionHandling/IgnoringExceptionListenerFactory.java @@ -3,7 +3,7 @@ package teetime.framework.exceptionHandling; public class IgnoringExceptionListenerFactory implements IExceptionListenerFactory { @Override - public AbstractExceptionListener newHandlerInstance() { + public AbstractExceptionListener create() { return new IgnoringExceptionListener(); } diff --git a/src/main/java/teetime/framework/exceptionHandling/LoggingExceptionListenerFactory.java b/src/main/java/teetime/framework/exceptionHandling/LoggingExceptionListenerFactory.java index 5bac663e1a36d04ec04b858664811274d8488972..0e040225d1a1099c1a7b6412da0c5eefcbf9f1b8 100644 --- a/src/main/java/teetime/framework/exceptionHandling/LoggingExceptionListenerFactory.java +++ b/src/main/java/teetime/framework/exceptionHandling/LoggingExceptionListenerFactory.java @@ -3,7 +3,7 @@ package teetime.framework.exceptionHandling; public class LoggingExceptionListenerFactory implements IExceptionListenerFactory { @Override - public AbstractExceptionListener newHandlerInstance() { + public AbstractExceptionListener create() { return new LoggingExceptionListenerListener(); } diff --git a/src/main/java/teetime/framework/exceptionHandling/TerminatingExceptionListenerFactory.java b/src/main/java/teetime/framework/exceptionHandling/TerminatingExceptionListenerFactory.java index 49822c174c99cf51489f1b7d60009cd366299c1c..7086a8908173b0909a25c372fda2a77aa1cf9b89 100644 --- a/src/main/java/teetime/framework/exceptionHandling/TerminatingExceptionListenerFactory.java +++ b/src/main/java/teetime/framework/exceptionHandling/TerminatingExceptionListenerFactory.java @@ -3,7 +3,7 @@ package teetime.framework.exceptionHandling; public class TerminatingExceptionListenerFactory implements IExceptionListenerFactory { @Override - public AbstractExceptionListener newHandlerInstance() { + public AbstractExceptionListener create() { return new TerminatingExceptionListener(); } diff --git a/src/test/java/teetime/framework/exceptionHandling/TestListenerFactory.java b/src/test/java/teetime/framework/exceptionHandling/TestListenerFactory.java index ae3785d92642edc04e3b792873f498f5960a5502..01de8e6b1df5c29476e94beedf87e1ba9b9de3d6 100644 --- a/src/test/java/teetime/framework/exceptionHandling/TestListenerFactory.java +++ b/src/test/java/teetime/framework/exceptionHandling/TestListenerFactory.java @@ -3,7 +3,7 @@ package teetime.framework.exceptionHandling; public class TestListenerFactory implements IExceptionListenerFactory { @Override - public AbstractExceptionListener newHandlerInstance() { + public AbstractExceptionListener create() { return new TestListener(); }