Nested Session-Beans

The aim of this query is to point out violations of the following rule: a session-bean class must be a top-level class.

Pre-packaged Query

Query name="Semmle/StyleChecks/J2EE/Session-Bean/All session-beans must be-top level"

Reports all Session-Bean types that are not top-level (i.e. are nested classes).

from SessionBean sbean
where sbean instanceof NestedClass
select sbean, sbean.toString() + " session-bean must be top-level"

References

Enterprise JavaBeans 2.1 - Specification, section 7.11.2

Digg!Reddit!Del.icio.us!Facebook!Slashdot!Technorati!StumbleUpon!Ma.gnolia!

Comments
Only registered users can write comments!
 
< Prev   Next >