juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Blackmon <sblack...@apache.org>
Subject Re: Microservice API changes.
Date Sat, 24 Nov 2018 19:37:23 GMT
+1 this would be useful when adding resources whose configuration may vary
at runtime.

Bonus points if user code can reinitialize the microservice and rerun the
setup step if conditions change

On Sat, Nov 24, 2018, 12:33 PM James Bognar <jamesbognar@apache.org wrote:

> Hi all,
>
> I'm going to do some refactoring in the Microservice APIs.
>
> Here are some of the changes I want to make (nothing should be breaking):
>
> 1) Add builders for the microservice classes.
> Something like this:
>
> RestMicroservice.create().resources(RootResources.class).port(10000).build().start();
>
> 2) Allow the external config file to be entirely optional by allowing
> you to define settings programmatically via the builder.  Default
> behavior still uses the config file though.
>
> 3) Break up the projects like so:
>  - juneau-microservice-core - Contains base Microservice class and
> default console commands.
>  - juneau-microservice-jetty - Contains RestMicroservice and
> Jetty-related stuff.
>  - juneau-microservice-springboot - Contains new microservice code from
> Marcelo.
>  - juneau-microservice-jetty-template - Template project using Jetty.
>  - juneau-microservice-springboot-template - Template project using Spring
> Boot.
>

Mime
View raw message