
javarepl.console.rest.RestConsoleApplication Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javarepl Show documentation
Show all versions of javarepl Show documentation
Java REPL is a simple Read-Eval-Print-Loop for Java language.
package javarepl.console.rest;
import com.googlecode.utterlyidle.BasePath;
import com.googlecode.utterlyidle.RestApplication;
import static com.googlecode.utterlyidle.annotations.AnnotatedBindings.annotatedClass;
import static com.googlecode.utterlyidle.modules.Modules.applicationInstance;
import static com.googlecode.utterlyidle.modules.Modules.bindingsModule;
public class RestConsoleApplication extends RestApplication {
public RestConsoleApplication(BasePath basePath, RestConsole console) {
super(basePath,
bindingsModule(annotatedClass(RestConsoleResource.class)),
applicationInstance(console),
applicationInstance(new RestConsoleExpressionReader()));
add(new RestConsoleModule());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy