Thanks for this work juha, it will lower the level of "it doesn't work"
messages.
:)
marc
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of jBoss CVS
> Development
> Sent: Saturday, June 03, 2000 10:50 AM
> To: [EMAIL PROTECTED]
> Subject: [jBoss-Dev] CVS update:
> jboss/src/main/org/jboss/verifier/eventVerificationEventFactory.java
>
>
> User: juha
> Date: 00/06/03 10:49:33
>
> Modified: src/main/org/jboss/verifier/event
> VerificationEventFactory.java
> Log:
> Added checks for session bean class (6.10.2):
> - class must be public
> - class cannot be final
> - class cannot be abstract
> - class must have public default constructor
> - class cannot define finalizer
>
> Revision Changes Path
> 1.3 +48 -2
> jboss/src/main/org/jboss/verifier/event/VerificationEventFactory.java
>
> Index: VerificationEventFactory.java
> ===================================================================
> RCS file:
> /products/cvs/ejboss/jboss/src/main/org/jboss/verifier/event/Verif
> icationEventFactory.java,v
> retrieving revision 1.2
> retrieving revision 1.3
> diff -u -r1.2 -r1.3
> --- VerificationEventFactory.java 2000/06/01 22:29:43 1.2
> +++ VerificationEventFactory.java 2000/06/03 17:49:33 1.3
> @@ -19,7 +19,7 @@
> * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
> 02111-1307, USA.
> *
> * This package and its source code is available at www.jboss.org
> - * $Id: VerificationEventFactory.java,v 1.2 2000/06/01
> 22:29:43 juha Exp $
> + * $Id: VerificationEventFactory.java,v 1.3 2000/06/03
> 17:49:33 juha Exp $
> */
>
>
> @@ -49,7 +49,7 @@
> * @see << OTHER RELATED CLASSES >>
> *
> * @author Juha Lindfors ([EMAIL PROTECTED])
> - * @version $Revision: 1.2 $
> + * @version $Revision: 1.3 $
> * @since JDK 1.3
> */
> public class VerificationEventFactory {
> @@ -88,7 +88,23 @@
> else if (EJBVerifier11.SECTION_6_6_1.equals(section))
> buildBeanManagedTxBeanCannotSynchEvent(event, name);
>
> +
> + else if (EJBVerifier11.SECTION_6_10_2_a.equals(section))
> + buildSessionBeanClassNotPublicEvent(event, name);
>
> + else if (EJBVerifier11.SECTION_6_10_2_b.equals(section))
> + buildSessionBeanClassIsFinalEvent(event, name);
> +
> + else if (EJBVerifier11.SECTION_6_10_2_c.equals(section))
> + buildSessionBeanClassIsAbstractEvent(event, name);
> +
> + else if (EJBVerifier11.SECTION_6_10_2_d.equals(section))
> + buildNoDefaultConstructorInSessionBeanEvent(event, name);
> +
> + else if (EJBVerifier11.SECTION_6_10_2_e.equals(section))
> + buildSessionBeanDefinesFinalizerEvent(event, name);
> +
> +
> else if (EJBVerifier11.DTD_EJB_CLASS.equals(section))
> buildEJBClassNotFoundEvent(event, name);
>
> @@ -153,6 +169,36 @@
> // event.setVerbose();
> }
>
> + private void
> buildSessionBeanClassNotPublicEvent(VerificationEvent event,
> String name) {
> +
> + // event.setMessage();
> + // event.setVerbose();
> + }
> +
> + private void
> buildSessionBeanClassIsFinalEvent(VerificationEvent event, String name) {
> +
> + // event.setMessage();
> + // event.setVerbose();
> + }
> +
> + private void
> buildSessionBeanClassIsAbstractEvent(VerificationEvent event,
> String name) {
> +
> + // event.setMessage();
> + // event.setVerbose();
> + }
> +
> + private void
> buildNoDefaultConstructorInSessionBeanEvent(VerificationEvent
> event, String name) {
> +
> + // event.setMessage();
> + // event.setVerbose();
> + }
> +
> + private void
> buildSessionBeanDefinesFinalizerEvent(VerificationEvent event,
> String name) {
> +
> + // event.setMessage();
> + // event.setVerbose();
> + }
> +
> private void buildEJBClassNotFoundEvent(VerificationEvent
> event, String name) {
>
> event.setMessage(EJB_CLASS_ELEMENT_NOT_FOUND);
>
>
>
>
>