mirror of
https://github.com/ethauvin/rife2.git
synced 2025-05-01 02:58:12 -07:00
Minor cleanups
This commit is contained in:
parent
64b4334682
commit
b86be90602
2 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
web continuations, bidirectional template engine, bean-centric metadata system,
|
||||
full-stack without dependencies, metadata-driven SQL builders, content
|
||||
management framework, full localization support, resource abstraction, cron-like
|
||||
scheduler.
|
||||
management framework, full localization support, resource abstraction, persisted
|
||||
cron-like scheduler.
|
||||
|
||||
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
|
||||
|
|
|
@ -13,7 +13,7 @@ public class HelloScheduler extends Site {
|
|||
Datasource datasource = new Datasource("org.h2.Driver", "jdbc:h2:./embedded_dbs/h2/hello", "sa", "", 5);
|
||||
DatabaseScheduler databaseScheduler = DatabaseSchedulerFactory.instance(datasource);
|
||||
|
||||
public static class HelloExecutor extends Executor {
|
||||
public static class CounterExecutor extends Executor {
|
||||
private int counter_ = 0;
|
||||
|
||||
public boolean executeTask(Task task) {
|
||||
|
@ -29,7 +29,7 @@ public class HelloScheduler extends Site {
|
|||
public void setup() {
|
||||
final var scheduler = databaseScheduler.getScheduler();
|
||||
|
||||
final var executor = new HelloExecutor();
|
||||
final var executor = new CounterExecutor();
|
||||
scheduler.addExecutor(executor);
|
||||
|
||||
get("/status", c -> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue