Skip to content

Commit

Permalink
Documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
SuppieRK committed Feb 15, 2025
1 parent d9e83f4 commit 1f37ab7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions service/src/main/java/service/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,34 @@
import service.endpoints.UsersEndpointGroup;
import service.services.UsersService;

/** Starting point. */
public class Application {
/**
* In this simple example we leave this field visibility at package-default level for easier
* access in tests.
*
* <p>It could be a good idea to expose this field via public getter - just make sure that your
* implementation of {@link ApplicationWrapper} is immutable.
*/
final ApplicationWrapper wrapper;

/**
* Default constructor.
*
* <p>Also registers all necessary dependencies.
*/
public Application() {
this.wrapper =
ApplicationWrapper.createApplication()
.add(UsersService.class, UsersEndpointGroup.class)
.build();
}

/**
* Default main method.
*
* @param args to pass to the app
*/
public static void main(String[] args) {
final var application = new Application();

Expand Down

0 comments on commit 1f37ab7

Please sign in to comment.