users@ejb-spec.java.net

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

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Wed, 27 Mar 2013 16:21:09 -0700

After a longer discussion with Mark offline and not to allow users to
shoot themselves into a foot, the new proposal is to change both
statements as follow:

(a) "All non-static public methods of the bean class and of any
superclasses except the java.lang.Object, are exposed as business methods."

(b) "Business methods exposed through the no-interface view must not be
declared final."

Let me know if anybody disagrees.

thanks,
-marina

On 3/27/13 11:36 AM, Marina Vatkina wrote:
> 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
>
>