Skip to content

Commit

Permalink
Copied "On" API as "Dev" and "Admin".
Browse files Browse the repository at this point in the history
  • Loading branch information
nmihajlovski committed Mar 1, 2016
1 parent cf4aa90 commit ef42aec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Expand Up @@ -118,10 +118,6 @@ public static synchronized Setup processor(HttpProcessor listener) {
return SETUP.processor(listener);
}

public static synchronized Setup instance() {
return SETUP;
}

public static Setup args(String... args) {
return SETUP.args(args);
}
Expand All @@ -143,6 +139,10 @@ public static Setup deregister(Object... controllers) {
return SETUP.deregister(controllers);
}

public static synchronized Setup setup() {
return SETUP;
}

public static Config config() {
return SETUP.config();
}
Expand Down
Expand Up @@ -118,10 +118,6 @@ public static synchronized Setup processor(HttpProcessor listener) {
return SETUP.processor(listener);
}

public static synchronized Setup instance() {
return SETUP;
}

public static Setup args(String... args) {
return SETUP.args(args);
}
Expand All @@ -143,6 +139,10 @@ public static Setup deregister(Object... controllers) {
return SETUP.deregister(controllers);
}

public static synchronized Setup setup() {
return SETUP;
}

public static Config config() {
return SETUP.config();
}
Expand Down
Expand Up @@ -84,8 +84,8 @@ public void openContext() {
public void closeContext() {
System.out.println("--- STOPPING SERVER ---");

Admin.instance().shutdown();
Dev.instance().shutdown();
Admin.setup().shutdown();
Dev.setup().shutdown();

System.out.println("--- SERVER STOPPED ---");
}
Expand Down

0 comments on commit ef42aec

Please sign in to comment.