1 package com.bm.ejb3metadata.annotations.impl;
2
3 import java.util.ArrayList;
4 import java.util.List;
5
6 import javax.ejb.ActivationConfigProperty;
7
8
9
10
11
12 public class JMessageDriven extends JCommonBean {
13
14
15
16
17 private List<ActivationConfigProperty> activationConfigProperties = null;
18
19
20
21
22 private String messageListenerInterface = null;
23
24
25
26
27 public JMessageDriven() {
28 super();
29 activationConfigProperties = new ArrayList<ActivationConfigProperty>();
30 }
31
32
33
34
35
36 public void addActivationConfigProperty(final ActivationConfigProperty activationConfigProperty) {
37 activationConfigProperties.add(activationConfigProperty);
38 }
39
40
41
42
43
44 public List<ActivationConfigProperty> getActivationConfigProperties() {
45 return activationConfigProperties;
46 }
47
48
49
50
51 public String getMessageListenerInterface() {
52 return messageListenerInterface;
53 }
54
55
56
57
58
59 public void setMessageListenerInterface(final String messageListenerInterface) {
60 this.messageListenerInterface = messageListenerInterface;
61 }
62
63
64
65
66 @Override
67 public String toString() {
68 StringBuilder sb = new StringBuilder();
69
70 sb.append(this.getClass().getName().substring(this.getClass().getPackage().getName().length() + 1));
71
72 sb.append(super.toString());
73
74
75 sb.append("[messageListenerInterface=");
76 sb.append(messageListenerInterface);
77
78
79 sb.append(", activationConfigProperties=");
80 sb.append(activationConfigProperties);
81
82 sb.append("]");
83 return sb.toString();
84 }
85 }