Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jersey-dev] Deprecated class: Naming Conventions

Normally I would say my bad if it weren't for the fact I wrote a document on using  Naming Conventions for a company I worked for.

Naming Conventions is a best practice in Software Engineering. 





On Mon, 29 Mar 2021, 14:17 , <Hussain.NM@xxxxxxxxxxxxx> wrote:

jakarta.annotation.ManagedBean is not deprecated, whereas jakarta.faces.bean.ManagedBean is deprecated. The first annotation is part of Jakarta Managed Beans and the second annotation is part of Jakarta Server Faces.

 

See Javadoc [1] and [2].

 

[1] https://jakarta.ee/specifications/platform/9/apidocs/jakarta/annotation/ManagedBean.html

 

[2] https://jakarta.ee/specifications/platform/9/apidocs/jakarta/faces/bean/ManagedBean.html

 

Thanks

Hussain

 

From: jersey-dev <jersey-dev-bounces@xxxxxxxxxxx> On Behalf Of Som Lima
Sent: Monday, March 29, 2021 3:00 AM
To: jersey developer discussions <jersey-dev@xxxxxxxxxxx>
Subject: [jersey-dev] Deprecated class

 

[External]

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.

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
_______________________________________________
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