1 23 24 package com.sun.enterprise.deployment; 25 26 import java.util.Set ; 27 28 39 public class InboundResourceAdapter extends Descriptor 40 { 41 private Set messageListeners; 42 private boolean isDirty = false; 43 44 public InboundResourceAdapter () 45 { 46 messageListeners = new OrderedSet(); 47 } 48 49 public Set 50 getMessageListeners() 51 { 52 return this.messageListeners; 53 } 54 55 public void 56 addMessageListener (MessageListener listener) 57 { 58 this.messageListeners.add(listener); 59 this.setDirty(); 60 this.changed(); 61 } 62 63 public void 64 removeMessageListener (MessageListener listener) 65 { 66 this.messageListeners.remove(listener); 67 this.setDirty(); 68 this.changed(); 69 } 70 71 public boolean 72 isDirty() 73 { 74 return this.isDirty; 75 } 76 77 public void 78 changed() 79 { 80 super.changed(); 81 } 82 83 private void setDirty() { 84 this.isDirty = true; 85 } 86 } 87 | Popular Tags |