Does ejb stateless class has to be public?

半城伤御伤魂 提交于 2019-12-24 05:29:06

问题


Can @Stateless class have different modifiers than public? In documentation I have only found constraints of constructor/methods visibility, but nothing interesting about class level access.


回答1:


According to ejb3-1 specification:

4.9.2 Session Bean Class

The following are the requirements for the session bean class:

• The class must be defined as public, must not be final, and must not be abstract. The class must be a top level class



来源:https://stackoverflow.com/questions/25867608/does-ejb-stateless-class-has-to-be-public

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!