Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jaxrs-dev] [External] : Re: Jakarta REST 4.0 - Brainstorming
  • From: Santiago Pericasgeertsen <santiago.pericasgeertsen@xxxxxxxxxx>
  • Date: Mon, 24 May 2021 18:35:44 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GpPKXND9ADZwuG+Rk0d1wd5GdwdeAtMJ+H+1AEikp+k=; b=dWmsl/5ffwfxQdAQT8cbfJEJXYL742ISIjvw8dAMaaLf7fPcqrZma4te2ZjcSQeejMf+4qbWgB96RsrtagcsRDPRhrKXCldWuiaoMlz+geyVluiIWLFEhbDhsc1aLv1zS0imHSY00r2EZfJkb6UJ4bE+aqOp+ngrY7GV5tQAzuUB/uxYunce81svaA1lals6CUVWR1RaOcmmn5jZmXPY/sSdOWBde5NWF3PBmsPR3A/+tRIQlgd3wzVYrd/PK4C/yz8uqRt9FUG3dR4TuscsEH+zVrBzhQowePxDydQpz9HP7cAeEkoCjTe4yZ95wfOY24bYapRoXdtei1UCO9W0CA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lUaxzUymF9hVhnuK7GZ3C37daUAP1uOIEpjtIqQgwyo6piKdKIeHOETHlsamH6FazdWhz72/E7nPGXrwsSBvQxsNjtBprJZ9T6aicStkqm4y/8KASrr7+eXBmhW+sB346inoLkElzhY8RxxVr2lcCzBBREG90HQHNx3GWfAoXfzVxidokTiIHNM22EdG6FHqtd2gOnNh/vWzgnctgL3+07l+arLcXPeZbphawTyo2RifwWSlIv24+TbumWyC1MhWkzDOntyyipTydAKS/4hqW8Xb0lkkIyB5pxwCIId0DhZ5ljtlCLm1EN0zXoIiV6lSrdHTFAz+/j3UuPpwaeOLUg==
  • Delivered-to: jaxrs-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jaxrs-dev/>
  • List-help: <mailto:jaxrs-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jaxrs-dev>, <mailto:jaxrs-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jaxrs-dev>, <mailto:jaxrs-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHXTlBy25L2ier5YUOFz4EskdV6aarvOsuAgAO/yIA=
  • Thread-topic: [External] : Re: [jaxrs-dev] Jakarta REST 4.0 - Brainstorming

Markus,

> 
> * Is @Inject really needed for @*Param, or can we tell CDI that @*Param shall *imply* @Inject? 

 I think so, as long as @*Param are qualifiers. It may possible for implementations to provide shortcuts without @Inject, but I’m not sure we should encourage that.

> 
> * Why do we need @Entity?

 Because we should allow injection of arbitrary CDI beans as params, and if you have more than one, it’s not clear which one is the entity.

> 
> * If a provider is @ApplicationScoped, is it still possible to inject request-bound information (like the current SecurityContext) into a field (I assume this would inject an @ApplicationScoped wrapper in that case which dynamically forwards to the actual request-bound information "under the hood")? 

 Yes, just like today without CDI.

> 
> I also would like to add one more general topic to the 4.0 list: Supporting modern Java. This means, we should be able to run on JRE 17 as this is the next LTS version, and we should clarify with the Jakarta EE team what the minimum JRE for Jakarta EE 10 is. We also should discuss whether records and sealed classes needs special support in Jakarta REST 4.0 as I assume both become rather popular in the next months.

 This is more of a community decision IMO. I’m not sure how to do some of the things you mention here while requiring support for a minimum JRE. Perhaps you can explain this a bit more.

> 
> And finally, we should discuss if we adopt the var keyword in (new / legacy / no) source code, as it makes the code less verbose and easier to read.

 Where? In our API classes?

— Santiago

> -----Ursprüngliche Nachricht-----
> Von: jaxrs-dev [mailto:jaxrs-dev-bounces@xxxxxxxxxxx] Im Auftrag von Santiago Pericasgeertsen
> Gesendet: Freitag, 21. Mai 2021 16:49
> An: jaxrs developer discussions
> Betreff: [jaxrs-dev] Jakarta REST 4.0 - Brainstorming
> 
> Hi All,
> 
> I put together some slides with thoughts about Jakarta REST 4.0 and CDI. Also created a branch in my fork that includes all the necessary changes to build a small sample. 
> 
> Hope you find this useful to get us started.
> 
> — Santiago
> 
> [1] https://urldefense.com/v3/__https://github.com/spericas/jaxrs-api/blob/release-4.0/JakartaRest40.pdf__;!!GqivPVa7Brio!OshpQsm5nBJS7QDYyOv1nf4DvZ-7ef9ExV6xokgLKFWQ62lBgwaYSDwggEjGs7RYFSZVJs9wdQ$ 
> [2] https://urldefense.com/v3/__https://github.com/spericas/jaxrs-api/tree/release-4.0__;!!GqivPVa7Brio!OshpQsm5nBJS7QDYyOv1nf4DvZ-7ef9ExV6xokgLKFWQ62lBgwaYSDwggEjGs7RYFSYEKkUKsA$ 
> 
> 
> _______________________________________________
> jaxrs-dev mailing list
> jaxrs-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/jaxrs-dev__;!!GqivPVa7Brio!OshpQsm5nBJS7QDYyOv1nf4DvZ-7ef9ExV6xokgLKFWQ62lBgwaYSDwggEjGs7RYFSaAvObFdA$ 
> 
> _______________________________________________
> jaxrs-dev mailing list
> jaxrs-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/jaxrs-dev__;!!GqivPVa7Brio!OshpQsm5nBJS7QDYyOv1nf4DvZ-7ef9ExV6xokgLKFWQ62lBgwaYSDwggEjGs7RYFSaAvObFdA$ 


Back to the top