• 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
Marshal
Posts: 35279
384
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic