public static void main(String[] args) { // SLF4JBridgeHandler.removeHandlersForRootLogger(); // SLF4JBridgeHandler.install(); new MicroserverApp(()->"simple").start(); }
public static void main(String[] args){ new MicroserverApp(()-> "simple-app").run(); } @GET
@After public void stopServer(){ server.stop(); } /*
public MicroserverPlugins(Module mod, Class... classes){ this.classes = ReactiveSeq.of(classes) .appendStream(ReactiveSeq.of(new MicroserverApp(extractClass(),mod).classes)) .toArray(i->new Class[i]); } public Class[] classes(){
public List<Thread> start() { List<ServerApplication> apps = modules.map(module -> createServer(module)); ServerRunner runner; try { runner = new ServerRunner( springContext.getBean(ApplicationRegister.class), apps, end); } catch (BeansException e) { runner = new ServerRunner( apps, end); } return runner.run(); }
@After public void stopServer(){ server.stop(); } /*
public MicroserverPlugins(Class... classes){ ReactiveSeq<Class> rs= classes!=null ? ReactiveSeq.of(classes) : ReactiveSeq.empty(); this.classes = rs .appendStream(ReactiveSeq.of(new MicroserverApp(true,extractClass(),()->"").classes)) .toArray(i->new Class[i]); } public MicroserverPlugins(Module mod, Class... classes){
public List<Thread> start() { List<ServerApplication> apps = modules.map(module -> createServer(module)); ServerRunner runner; try { runner = new ServerRunner( springContext.getBean(ApplicationRegister.class), apps, end); } catch (BeansException e) { runner = new ServerRunner( apps, end); } return runner.run(); }
@Before public void startServer(){ server = new MicroserverApp( ()-> "async-app"); server.start(); }
@After public void stopServer(){ server.stop(); }
public static void main(String[] args) throws IOException{ new MicroserverApp(()->"test-app").run(); } }
@Before public void startServer(){ server = new MicroserverApp(()-> "minimal-app"); server.start(); }
@After public void stopServer() { server.stop(); }
public static void main(String[] args) throws InterruptedException { new MicroserverApp( FilterAppLocalMain.class, () -> "filter-app") .run(); }
@Before public void startServer() { server = new MicroserverApp(() -> "registry-app"); server.start(); }
@After public void stopServer(){ server.stop(); }
public static void main(String[] args) throws InterruptedException { new MicroserverApp( AppRunnerLocalMain.class, () -> "test-app") .run(); }
@Before public void startServer(){ server = new MicroserverApp(()-> "event-app"); server.start(); }
@After public void stopServer(){ server.stop(); }
public static void main(String[] args){ new MicroserverApp(()->"test-app").run(); } @GET