2
0
Fork 0
mirror of https://github.com/ethauvin/rife2.git synced 2025-05-01 11:08:11 -07:00

Minor cleanups

This commit is contained in:
Geert Bevin 2023-01-10 08:59:09 -05:00
parent 64b4334682
commit b86be90602
2 changed files with 4 additions and 4 deletions

View file

@ -38,8 +38,8 @@ still integrate with other Java libraries and frameworks where you need it.
RIFE2 has features that after 20 years still can't be found elsewhere: RIFE2 has features that after 20 years still can't be found elsewhere:
web continuations, bidirectional template engine, bean-centric metadata system, web continuations, bidirectional template engine, bean-centric metadata system,
full-stack without dependencies, metadata-driven SQL builders, content full-stack without dependencies, metadata-driven SQL builders, content
management framework, full localization support, resource abstraction, cron-like management framework, full localization support, resource abstraction, persisted
scheduler. cron-like scheduler.
Most of these features have stood the test of time and after 20 years still Most of these features have stood the test of time and after 20 years still
prove to be great choices for web application development. RIFE2 has learned prove to be great choices for web application development. RIFE2 has learned

View file

@ -13,7 +13,7 @@ public class HelloScheduler extends Site {
Datasource datasource = new Datasource("org.h2.Driver", "jdbc:h2:./embedded_dbs/h2/hello", "sa", "", 5); Datasource datasource = new Datasource("org.h2.Driver", "jdbc:h2:./embedded_dbs/h2/hello", "sa", "", 5);
DatabaseScheduler databaseScheduler = DatabaseSchedulerFactory.instance(datasource); DatabaseScheduler databaseScheduler = DatabaseSchedulerFactory.instance(datasource);
public static class HelloExecutor extends Executor { public static class CounterExecutor extends Executor {
private int counter_ = 0; private int counter_ = 0;
public boolean executeTask(Task task) { public boolean executeTask(Task task) {
@ -29,7 +29,7 @@ public class HelloScheduler extends Site {
public void setup() { public void setup() {
final var scheduler = databaseScheduler.getScheduler(); final var scheduler = databaseScheduler.getScheduler();
final var executor = new HelloExecutor(); final var executor = new CounterExecutor();
scheduler.addExecutor(executor); scheduler.addExecutor(executor);
get("/status", c -> { get("/status", c -> {