future.failed(controller.getStartException());
controller.removeListener(this);
break;
}
case REMOVING_to_REMOVED: {
future.failed(new ServiceNotFoundException("Server controller service was removed"));
controller.removeListener(this);
break;
}
}
}
});
break;
}
case STARTING_to_START_FAILED: {
controller.removeListener(this);
future.failed(controller.getStartException());
break;
}
case REMOVING_to_REMOVED: {
controller.removeListener(this);
future.failed(new ServiceNotFoundException("Root service was removed"));
break;
}
}
}
});