1 22 package org.jboss.ejb3.test.standalone.embeddedjms; 23 24 import javax.ejb.Stateless ; 25 26 32 @Stateless 33 public class TestStatusBean implements TestStatus 34 { 35 public static boolean temporaryQueueRan = false; 36 public static boolean queueRan = false; 37 public static boolean topicRan = false; 38 public static boolean interceptedTopic = false; 39 public static boolean interceptedQueue = false; 40 public static boolean postConstruct = false; 41 public static boolean preDestroy = false; 42 43 public void clear() 44 { 45 temporaryQueueRan = false; 46 queueRan = false; 47 topicRan = false; 48 interceptedTopic = false; 49 interceptedQueue = false; 50 postConstruct = false; 51 preDestroy = false; 52 } 53 54 public boolean temporaryQueueFired() 55 { 56 return temporaryQueueRan; 57 } 58 59 public boolean queueFired() 60 { 61 return queueRan; 62 } 63 64 public boolean topicFired() 65 { 66 return topicRan; 67 } 68 69 public boolean interceptedTopic() 70 { 71 return interceptedTopic; 72 } 73 74 public boolean interceptedQueue() 75 { 76 return interceptedQueue; 77 } 78 79 public boolean postConstruct() 80 { 81 return postConstruct; 82 } 83 84 public boolean preDestroy() 85 { 86 return preDestroy; 87 } 88 } 89 | Popular Tags |