Krail provides a framework for rapid Java web development by combining Vaadin, Guice, Apache Shiro, Apache Commons Configuration and others. For more information, see the comprehensive Tutorial, which also makes a reasonable demo. (You can clone directly from the Tutorial repo). Note that the tutorial is based on the Vaadin 7 version of Krail - it should still be possible to follow it, but it will not be updated until the move to Eclipse Vert.x is done (or fails!)
This core library provides:
The framework is highly configurable, and virtually any element of it can be replaced by using Guice bindings.
The current focus for development is to provide full Forms support, running on Vertx. So far, thanks to the great contribution from Marco Collovati, running on Vertx has shown no specific issues.
It is intended that the same code can be run both on Vertx and a conventional web server environment, and a bootstrapping mechanism is provided for that purpose.
The extensive Documentation, includes a Tutorial, user Guide and Developer Guide. The Tutorial is currently limited to the Vaadin 7 version, and needs rewriting to include new features.
Originally written in Java the source is gradually being migrated to Kotlin. Tests are a mix of JUnit, Spock and Spek. The intention is to end up with an all-Kotlin solution, but porting is usually only done when code changes are required for other reasons.
| Krail version | Vaadin |
|---|---|
| 0.12.x.x | version 7 |
| 0.13.x.x-v7compat | version 8, running version 7 compatibility |
| 0.14.x.x | and beyond, pure Vaadin 8 |
repositories {
jcenter()
}
'uk.q3c.krail:krail:0.16.12.0'
<repository>
<id>jcenter</id>
<url>http://jcenter.bintray.com</url>
</repository>
<dependency>
<groupId>uk.q3c.krail</groupId>
<artifactId>krail</artifactId>
<version>0.16.12.0</version>
</dependency>
Testing on Vertx has been limited, particularly on clustered Vertx. Having said that, functional tests run on Vertx have shown no issues except that Push does not correctly disable.
There is a functional test application which can also be used to explore functionality - though the Tutorial may be better for that
Gradle is used (made a lot easier thanks to the Gradle Vaadin plugin.
Thanks to:
Marco Collovati for his work on Vaadin - Vertx integration, and support for core Krail development
Dirk Lietz for his review and feedback for the Tutorial
Mike Pilone for his blog post on Vaadin Shiro integration
ej technologies for an open source licence of JProfiler
Guava (cache and utilities)
$ claude mcp add krail \
-- python -m otcore.mcp_server <graph>