• Post Reply Bookmark Topic Watch Topic
  • New Topic

Naming conventions for classes in part 2

 
Antonio Fornie
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again,

Do you know what conventions are there for specefic kinds of classes? For example, EJBs are called *Bean, and they're interfaces *Local or *Remote. So how should I call JSF Backing Beans? And what about a Web Service client?

I'm using this naming convention (let's suppose it's about Sales):
SaleLocal
SaleBean
SaleBB (for JSF Backing Bean)
SaleWSClient (for Web Service consumer)
SaleManager (a sales general purpose pojo)

Is it right or is there another nameing convention?

Thank you very much!

antonio
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36027
432
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Antonio,
That is fine. I don't know what the convention is for BackingBeans, but yours seems logical. In your class diagram, you can use a stereotype to show what type they are as well.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!