1 25 26 package org.objectweb.easybeans.deployment.annotations.impl; 27 28 import java.util.ArrayList ; 29 import java.util.List ; 30 31 import javax.ejb.ActivationConfigProperty ; 32 33 37 public class JMessageDriven extends JCommonBean { 38 39 42 private List <ActivationConfigProperty > activationConfigProperties = null; 43 44 47 private String messageListenerInterface = null; 48 49 52 public JMessageDriven() { 53 super(); 54 activationConfigProperties = new ArrayList <ActivationConfigProperty >(); 55 } 56 57 61 public void addActivationConfigProperty(final ActivationConfigProperty activationConfigProperty) { 62 activationConfigProperties.add(activationConfigProperty); 63 } 64 65 69 public List <ActivationConfigProperty > getActivationConfigProperties() { 70 return activationConfigProperties; 71 } 72 73 76 public String getMessageListenerInterface() { 77 return messageListenerInterface; 78 } 79 80 84 public void setMessageListenerInterface(final String messageListenerInterface) { 85 this.messageListenerInterface = messageListenerInterface; 86 } 87 88 91 @Override 92 public String toString() { 93 StringBuilder sb = new StringBuilder (); 94 sb.append(this.getClass().getName().substring(this.getClass().getPackage().getName().length() + 1)); 96 97 sb.append(super.toString()); 98 99 sb.append("[messageListenerInterface="); 101 sb.append(messageListenerInterface); 102 103 sb.append(", activationConfigProperties="); 105 sb.append(activationConfigProperties); 106 107 sb.append("]"); 108 return sb.toString(); 109 } 110 } 111 | Popular Tags |