Sunday, August 20, 2017

EJB naming conventions


How does Oracle official JEE 7 tutorial say?

ItemsSyntaxExample
EJB bean namenameBeanHelloBean
EJB bean java class namenameBeanHelloBean
Business interfacenameHello

How is Java SE API doing?


Interface NameImplementation Class Name
java.util.List<E>AbstractList
AbstractSequentialList
ArrayList
AttributeList
LinkedList
java.util.Map<K,V>AbstractMap
Attributes
AuthProvider
ConcurrentHashMap
ConcurrentSkipListMap
EnumMap
HashMap
Hashtable
IdentityHashMap
LinkedHashMap
Properties
TreeMap
There is a lot examples in java api. Some abstract classes' name and their implementation classes are all named very well. Anyway, I never see something like IList, ListInter or ListInterface ......

How do you name your interface and enterprise session bean? 

No comments:

Post a Comment