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

renamed method

parent 537ad05c
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
......@@ -2,6 +2,6 @@ package teetime.framework.exceptionHandling;
public interface IExceptionListenerFactory {
public AbstractExceptionListener newHandlerInstance();
public AbstractExceptionListener create();
}
......@@ -3,7 +3,7 @@ package teetime.framework.exceptionHandling;
public class IgnoringExceptionListenerFactory implements IExceptionListenerFactory {
@Override
public AbstractExceptionListener newHandlerInstance() {
public AbstractExceptionListener create() {
return new IgnoringExceptionListener();
}
......
......@@ -3,7 +3,7 @@ package teetime.framework.exceptionHandling;
public class LoggingExceptionListenerFactory implements IExceptionListenerFactory {
@Override
public AbstractExceptionListener newHandlerInstance() {
public AbstractExceptionListener create() {
return new LoggingExceptionListenerListener();
}
......
......@@ -3,7 +3,7 @@ package teetime.framework.exceptionHandling;
public class TerminatingExceptionListenerFactory implements IExceptionListenerFactory {
@Override
public AbstractExceptionListener newHandlerInstance() {
public AbstractExceptionListener create() {
return new TerminatingExceptionListener();
}
......
......@@ -3,7 +3,7 @@ package teetime.framework.exceptionHandling;
public class TestListenerFactory implements IExceptionListenerFactory {
@Override
public AbstractExceptionListener newHandlerInstance() {
public AbstractExceptionListener create() {
return new TestListener();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment