Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Commit

Permalink
Update StandaloneService -> HttpService
Browse files Browse the repository at this point in the history
In docs/comments, and makes apollo-example build.
  • Loading branch information
zalenski committed Nov 23, 2015
1 parent 055ebe5 commit 0f1ef4c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Apollo will be distributed as a set of Maven artifacts, which makes it easy to g
public final class App {

public static void main(String[] args) throws LoadingException {
StandaloneService.boot(App::init, "my-app", args);
HttpService.boot(App::init, "my-app", args);
}

static void init(Environment environment) {
Expand Down
2 changes: 1 addition & 1 deletion apollo-api/docs/app-init-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class DataService {
* The main entry point for the service, referencing init
*/
public static void main(String[] args) throws LoadingException {
StandaloneService.boot(DataService::init, "ping", args);
HttpService.boot(DataService::init, "ping", args);
}
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import com.spotify.apollo.route.AsyncHandler;
import com.spotify.apollo.route.Middleware;
import com.spotify.apollo.route.Route;
import com.spotify.apollo.httpservice.HttpService;
import com.spotify.apollo.httpservice.LoadingException;
import com.spotify.apollo.httpservice.StandaloneService;

import java.util.concurrent.CompletionStage;

Expand All @@ -20,7 +20,7 @@
final class MinimalApp {

public static void main(String[] args) throws LoadingException {
StandaloneService.boot(MinimalApp::init, "test", args);
HttpService.boot(MinimalApp::init, "test", args);
}

static void init(Environment environment) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

class LogAndExit implements Thread.UncaughtExceptionHandler {

// note: using StandaloneService as the class; that's more meaningful than LogAndExit.
// note: using HttpService as the class; that's more meaningful than LogAndExit.
private static final Logger LOG = LoggerFactory.getLogger(HttpService.class);

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
public class HttpServiceTest {

// we need a static counter in order to be able to use the Class overload of
// StandaloneService.boot
// HttpService.boot
static final AtomicInteger counter = new AtomicInteger();

@Rule
Expand Down
2 changes: 1 addition & 1 deletion apollo-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ our application under test
class MinimalApp {

static void main(String[] args) throws LoadingException {
StandaloneService.boot(MinimalApp::init, "test", args);
HttpService.boot(MinimalApp::init, "test", args);
}

static void init(Environment environment) {
Expand Down

0 comments on commit 0f1ef4c

Please sign in to comment.