Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BootJex ... for easy starting when using @Controller etc #40

Closed
rbygrave opened this issue May 19, 2022 · 0 comments
Closed

Add BootJex ... for easy starting when using @Controller etc #40

rbygrave opened this issue May 19, 2022 · 0 comments
Assignees
Milestone

Comments

@rbygrave
Copy link
Contributor

rbygrave commented May 19, 2022

Example use:

public static void main(String[] args) {
  BootJex.start();
}

Docs

package io.avaje.jex;

/**
 * Start Jex using {@code @Controller} and avaje-inject, avaje-http, avaje-config.
 * <p>
 * - avaje-http generates the adapter for the {@code @Controller}
 * - avaje-inject generates dependency injection wiring
 * - avaje-config reads external configuration (application.properties|yaml, application-test.properties|yaml).
 */
public interface BootJex {

  /**
   * Start Jex server using {@code @Controller} with avaje-inject, avaje-http, avaje-config.
   *
   * <pre>{@code
   *   public static void main(String[] args) {
   *
   *     BootJex.start();
   *   }
   * }</pre>
   */
  static void start() {
    BootJexState.start();
  }
}
@rbygrave rbygrave added this to the 2.2 milestone May 19, 2022
@rbygrave rbygrave self-assigned this May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant