Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jersey-dev] [External] : Deprecated class
  • From: Jan Supol <jan.supol@xxxxxxxxxx>
  • Date: Mon, 29 Mar 2021 12:21:19 +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=978EB4txvj6zjL1NxEsri3OaWbQdqylNcrWtvw/hwYI=; b=RP55BvI9Zra+h/bgsy+8B6oW/zgkP/FViNgY79Y5Wt2PVAsftP4TuaPjS72TgL61CvSC8ifRvtTKpwy4H4jy80TDwd4cfSNOBnuKjooyvn3xq8ZY+paL/pcROIRzdza6ienDeT59AQRKbBDInM+ACYbtXvK7pFs6cOPSrTWdJzlNYEn9jCbyk9CVxKvMZbEyDMP69bQogKmFc/JLSRrQ3rHxzOAFlvZ++SQTd0jhRHfgxxAC7VmJI4uDyU1VA9cRs18S3MynZ5Ih/EoqgS1MTTEIgmNAQG/nzZtnaZjYYQkVFdUsc3ssMQizo8tckWmZpFY6bind9wRYmIRt7Po/yQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GDEGbyEiHCFfrPSVFEIeQl9O+nItpW1pknBTC/evZihQNAyM9Kpwz9qFMo74ZV79WTluQmHb++Vz8Zjh0udNk2Rhc3ctpm/w8VjRxL/w+MzQOZe2JSJ4mhDHQT11wEIG7HDUSvcOIXI3eUk6WYYRz1StOYgfu0qanKf/GkjTdT5VfxmEiTXLqwtBudFwjRUD8/pwKTkSmrtsxCyFSVCevHa29Gk8GVv8G0RVHMQ2lkUfOzukPJZbH6YfMGhvkekG4GqhtnU+n/qBBFcfNnbnogyJWQELoUy4G4i0YfZKj3Na1wl91wb83lPFKA29HH8kNuhGeMxsbTHkngNqtvD6ww==
  • Delivered-to: jersey-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jersey-dev/>
  • List-help: <mailto:jersey-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jersey-dev>, <mailto:jersey-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHXJIIIWLnzqFI7yUKBQzPtM1pbYaqavQCAgAAbQICAAAkZzA==
  • Thread-topic: [jersey-dev] [External] : Deprecated class

The concept of managed beans was introduced sometime before JSR 299 and CDI beans are preferable by most of the Jakarta EE Specs. However, Jakarta REST Specification still requires the support for Managed beans [1], and the Spec. does not mark it as deprecated, so can't Jersey. Feel free to open a discussion on the API level if you believe the support ought to be deprecated there as well.

Thanks,

-- Jan




From: jersey-dev <jersey-dev-bounces@xxxxxxxxxxx> on behalf of Reza Rahman <reza_rahman@xxxxxxxxx>
Sent: Monday, March 29, 2021 1:42 PM
To: jersey developer discussions <jersey-dev@xxxxxxxxxxx>
Subject: Re: [jersey-dev] [External] : Deprecated class
 
Dear Som,

JSF managed beans are indeed deprecated, but not the managed bean facility defined at the platform level. If you believe they should be deprecated, the best place to start that discussion is likely the platform development mailing list. However, it helps to get more context on the use cases for managed beans first. The best source of information is likely the platform specification document.

Hope this helps.

Reza Rahman
Jakarta EE Ambassador, Author, Blogger, Speaker

Please note views expressed here are my own as an individual community member and do not reflect the views of my employer.

On Mar 29, 2021, at 6:05 AM, Som Lima <somplasticllc@xxxxxxxxx> wrote:


On Mon, 29 Mar 2021, 10:57 Som Lima, <somplasticllc@xxxxxxxxx> wrote:
I loaded  code examples in netbeans ide and it had a strike through line meaning it is deprecated.


The netbeans is the best indicator because  deprecated code is programmed into the IDE.

Also it is indicated here aswell.


On Mon, 29 Mar 2021, 10:35 Jan Supol, <jan.supol@xxxxxxxxxx> wrote:
Hi, 
Why do you think jakarta.annotation.ManagedBean [1] has been deprecated? 
Thanks,
Jan

Jakarta Annotations. Contribute to eclipse-ee4j/common-annotations-api development by creating an account on GitHub.



From: jersey-dev <jersey-dev-bounces@xxxxxxxxxxx> on behalf of Som Lima <somplasticllc@xxxxxxxxx>
Sent: Sunday, March 28, 2021 11:29 PM
To: jersey developer discussions <jersey-dev@xxxxxxxxxxx>
Subject: [External] : [jersey-dev] Deprecated class
 
Hi,

I believe the following code in the jakarta jersey reference examples has been deprecated and should not be part of jakarta.
If that is the case You may to wish to look into it.
I have identified the files in question using the *.nix scripting language (A flexible therefore a powerful tool).

 
import jakarta.annotation.ManagedBean;
@ManagedBean

$ grep  -RiIl '@ManagedBean'
managed-beans-webapp/src/main/java/org/glassfish/jersey/examples/managedbeans/resources/ManagedBeanSingletonResource.java
managed-beans-webapp/src/main/java/org/glassfish/jersey/examples/managedbeans/resources/ManagedBeanExceptionMapper.java
managed-beans-webapp/src/main/java/org/glassfish/jersey/examples/managedbeans/resources/ManagedBeanPerRequestResource.java
managed-beans-webapp/README.MD
helloworld-weld/src/main/java/org/glassfish/jersey/examples/helloworld/App.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/MySingletonResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/MyOtherResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/HelloWorldResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/EchoParamFieldResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/EchoParamResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/EchoParamConstructorResource.java


Quick grep explanation:
    -R - recursive search
    -i - case-insensitive
    -I - skip binary files
    -l - print a simple list as output.
_______________________________________________
jersey-dev mailing list
jersey-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jersey-dev
_______________________________________________
jersey-dev mailing list
jersey-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jersey-dev

Back to the top