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
No right to create modifications or derivatives of Eclipse Foundation documents is granted pursuant to this license, except anyone may prepare and distribute derivative works and portions of this document in software that implements the specification, in supporting
materials accompanying such software, and in documentation of such software, PROVIDED that all such works include the notice below.
jakarta.ee
|
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:
Further official documentation
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.
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.
|
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
|