1 package com.puppycrawl.tools.checkstyle.j2ee; 2 3 import javax.ejb.EJBException ; 4 import javax.ejb.MessageDrivenBean ; 5 import javax.ejb.MessageDrivenContext ; 6 import javax.jms.Message ; 7 import javax.jms.MessageListener ; 8 9 12 public class InputMessageBean 13 implements MessageDrivenBean , MessageListener 14 { 15 16 19 public void setMessageDrivenContext(MessageDrivenContext arg0) throws EJBException { 20 22 } 23 24 27 public void ejbRemove() throws EJBException { 28 30 } 31 32 35 public void onMessage(Message arg0) { 36 38 } 39 } 40 41 abstract class AbstractMessageBean 42 implements MessageDrivenBean , MessageListener 43 { 44 public AbstractMessageBean() 45 { 46 } 47 48 public void ejbCreate() 49 { 50 } 51 } 52 53 final class FinalMessageBean 54 implements javax.ejb.MessageDrivenBean , javax.jms.MessageListener 55 { 56 public FinalMessageBean() 57 { 58 } 59 60 public Object 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 74 public void setMessageDrivenContext(MessageDrivenContext arg0) throws EJBException { 75 77 } 78 79 82 public void ejbRemove() throws EJBException { 83 85 } 86 87 90 public void onMessage(Message arg0) { 91 93 } 94 95 public void ejbCreate() 96 { 97 } 98 } | Popular Tags |