users@ejb-spec.java.net

[ejb-spec users] [jsr345-experts] Final methods in a bean class?

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Wed, 27 Mar 2013 11:36:42 -0700

Experts,

The EJB spec currently requires that if a bean exposes a no-interface
view (see 4.9.8 Session Bean’s No-Interface View):

(a) "All public methods of the bean class and of any superclasses except
the java.lang.Object, are exposed as business methods through the
no-interface view."
(b) "All methods of the bean class and any superclasses must not be
declared final."

For all other views the rules for a *business method* is
"The method must not be declared as final or static."

Does any of you see a problem with removing the rule (b) and changing
the rule (a) to:

"All non-final non-static public methods of the bean class and of any
superclasses except the java.lang.Object, are exposed as business
methods through the no-interface view."

thanks,
-marina