micro-server icon indicating copy to clipboard operation
micro-server copied to clipboard

Question : Possible API change, remove Annotations and Configurable Module

Open johnmcclean opened this issue 10 years ago • 0 comments

This might make application configuration simpler, and slightly more functional.

Simplest example :

  Microserver.of("my-app")
                     .run();

Example with configuration

  Microserserver.of("my-app")
                          .filters(Filter1.class,Filter2.class)
                          .resourcesFromSpring(ResourceMarker.class,ResourceMarker2.class)
                          .onPort(8080)
                          .run();

It would open up the option of exposing the internals such as the Spring Context and Jersey itself for Configuration e.g.

  Microserserver.of("my-app")
                          .configureJersey( resourceConfig -> resourceConfig.property("myProperty"));

johnmcclean avatar Jul 29 '15 13:07 johnmcclean