1 22 package org.jboss.resource.metadata; 23 24 import java.io.Serializable ; 25 import java.util.Collection ; 26 import java.util.HashSet ; 27 28 34 public class MessageListenerMetaData implements Serializable 35 { 36 private static final long serialVersionUID = -3196418073906964586L; 37 38 39 private String type; 40 41 42 private String asType; 43 44 45 private HashSet requiredProperties = new HashSet (); 46 47 52 public String getType() 53 { 54 return type; 55 } 56 57 62 public void setType(String type) 63 { 64 this.type = type; 65 } 66 67 72 public String getActivationSpecType() 73 { 74 return asType; 75 } 76 77 82 public void setActivationSpecType(String type) 83 { 84 this.asType = type; 85 } 86 87 92 public void addRequiredConfigProperty(RequiredConfigPropertyMetaData rcpmd) 93 { 94 requiredProperties.add(rcpmd); 95 } 96 97 102 public Collection getRequiredConfigProperties() 103 { 104 return requiredProperties; 105 } 106 107 public String toString() 108 { 109 StringBuffer buffer = new StringBuffer (); 110 buffer.append("MessageListenerMetaData").append('@'); 111 buffer.append(Integer.toHexString(System.identityHashCode(this))); 112 buffer.append("[type=").append(type); 113 buffer.append(" activationSpecType=").append(asType); 114 buffer.append(" requiredProperties=").append(requiredProperties); 115 buffer.append(']'); 116 return buffer.toString(); 117 } 118 } 119 | Popular Tags |