verifier@glassfish.java.net

Rules to be fired on the models

From: Seema Richard <Seema.Richard_at_ust-global.com>
Date: Tue, 21 Oct 2008 05:59:46 +0530

We have rules such as this one in the EJB 3.0 specs - If the session
bean implements the SessionBean interface, the PreDestroy annotation can
only be

applied to the ejbRemove method; the PostActivate annotation can only be
applied to the ejbActivate method; the PrePassivate annotation can only
be applied to the ejbPassivate

method. Similar requirements apply to use of deployment descriptor
metadata as an alternative to the use of annotations.

 

Would it be appropriate to apply such rules before merging the
annotation model and DD model or after? If we apply it earlier, we would
need to apply them for each model. So I guess it should be after
merging?

 

Thanks,

Seema