KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > j2ee > InputMessageBean


1 package com.puppycrawl.tools.checkstyle.j2ee;
2
3 import javax.ejb.EJBException JavaDoc;
4 import javax.ejb.MessageDrivenBean JavaDoc;
5 import javax.ejb.MessageDrivenContext JavaDoc;
6 import javax.jms.Message JavaDoc;
7 import javax.jms.MessageListener JavaDoc;
8
9 /**
10  * Test MessageBeanCheck
11  */

12 public class InputMessageBean
13     implements MessageDrivenBean JavaDoc, MessageListener JavaDoc
14 {
15
16     /**
17      * @see javax.ejb.MessageDrivenBean#setMessageDrivenContext(javax.ejb.MessageDrivenContext)
18      */

19     public void setMessageDrivenContext(MessageDrivenContext JavaDoc arg0) throws EJBException JavaDoc {
20         // TODO Auto-generated method stub
21

22     }
23
24     /**
25      * @see javax.ejb.MessageDrivenBean#ejbRemove()
26      */

27     public void ejbRemove() throws EJBException JavaDoc {
28         // TODO Auto-generated method stub
29

30     }
31
32     /**
33      * @see javax.jms.MessageListener#onMessage(javax.jms.Message)
34      */

35     public void onMessage(Message JavaDoc arg0) {
36         // TODO Auto-generated method stub
37

38     }
39 }
40
41 abstract class AbstractMessageBean
42     implements MessageDrivenBean JavaDoc, MessageListener JavaDoc
43 {
44     public AbstractMessageBean()
45     {
46     }
47     
48     public void ejbCreate()
49     {
50     }
51 }
52
53 final class FinalMessageBean
54     implements javax.ejb.MessageDrivenBean JavaDoc, javax.jms.MessageListener JavaDoc
55 {
56     public FinalMessageBean()
57     {
58     }
59
60     public Object JavaDoc method()
61     {
62         this.equals("");
63         "".equals(this);
64         return this;
65     }
66
67     protected static final int ejbCreate(int i)
68     {
69         return 0;
70     }
71     /**
72      * @see javax.ejb.MessageDrivenBean#setMessageDrivenContext(javax.ejb.MessageDrivenContext)
73      */

74     public void setMessageDrivenContext(MessageDrivenContext JavaDoc arg0) throws EJBException JavaDoc {
75         // TODO Auto-generated method stub
76

77     }
78
79     /**
80      * @see javax.ejb.MessageDrivenBean#ejbRemove()
81      */

82     public void ejbRemove() throws EJBException JavaDoc {
83         // TODO Auto-generated method stub
84

85     }
86
87     /**
88      * @see javax.jms.MessageListener#onMessage(javax.jms.Message)
89      */

90     public void onMessage(Message JavaDoc arg0) {
91         // TODO Auto-generated method stub
92

93     }
94     
95     public void ejbCreate()
96     {
97     }
98 }
Popular Tags