"How many are your works, O LORD! In wisdom you made them all; the earth is full of your creatures."
Psalms 104:24
tinystruct is a simple yet powerful framework for Java development. It embraces simple thinking and better design principles, making it easy to use while delivering excellent performance.
main() method required, applications start directly via CLI@ActionAdd the dependency to your pom.xml:
<dependency>
<groupId>org.tinystruct</groupId>
<artifactId>tinystruct</artifactId>
<version>1.7.23</version>
<classifier>jar-with-dependencies</classifier>
</dependency>
package tinystruct.examples;
import org.tinystruct.AbstractApplication;
import org.tinystruct.ApplicationException;
import org.tinystruct.system.annotation.Action;
public class Example extends AbstractApplication {
@Override
public void init() {
// Initialization code
}
@Action("praise")
public String praise() {
return "Praise the Lord!";
}
@Action("say")
public String say(String words) {
return words;
}
@Action(value = "hello", mode = Mode.HTTP_GET)
public String helloGet() {
return "GET";
}
}
main() method required: Applications can be started directly using CLI commands like bin/dispatcher, with no boilerplate code needed.@Action, eliminating complex controller hierarchies.Licensed under the Apache License, Version 2.0