|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
JMSDestination.java | - | 66.7% | 50% | 58.3% |
|
1 | /** | |
2 | * JTRunner is free software; you can redistribute it and/or modify it under the | |
3 | * terms of the GNU General Public License as published by the Free Software | |
4 | * Foundation; either version 2, or (at your option) any later version. | |
5 | */ | |
6 | ||
7 | package jtr.config.jms; | |
8 | ||
9 | import java.io.Serializable; | |
10 | ||
11 | /** | |
12 | * This class is the object oriented representation of both every | |
13 | * <code>queue</code> and <code>topic</code> | |
14 | * <code>jtr.xml</code> | |
15 | * configuration file's element.<br> | |
16 | * It logically maps itself to either a <code>javax.jms.Queue</code> or | |
17 | * <code>javax.jms.Topic</code>. | |
18 | * | |
19 | * @author Francesco Russo (frusso@dev.java.net) | |
20 | * @version 4.0 | |
21 | * @since 1.1 | |
22 | */ | |
23 | public class JMSDestination implements Serializable { | |
24 | ||
25 | /** | |
26 | * The default constructor. | |
27 | */ | |
28 | 0 | public JMSDestination() { |
29 | } | |
30 | ||
31 | /** | |
32 | * A parameterized constructor. | |
33 | * | |
34 | * @param jndi | |
35 | * The destination's JNDI name | |
36 | * @param property | |
37 | * The name of the runner property that will hold the actual JMS | |
38 | * destination once created | |
39 | */ | |
40 | 1 | public JMSDestination(String jndi, String property) { |
41 | 1 | this.jndi = jndi; |
42 | 1 | this.property = property; |
43 | } | |
44 | ||
45 | /** | |
46 | * Set the destination JNDI name | |
47 | * | |
48 | * @param jndi | |
49 | * The JNDI name | |
50 | */ | |
51 | 0 | public void setJndi(String jndi) { |
52 | 0 | this.jndi = jndi; |
53 | } | |
54 | ||
55 | /** | |
56 | * Get the destination JNDI name | |
57 | * | |
58 | * @return String The JNDI name | |
59 | */ | |
60 | 42 | public String getJndi() { |
61 | 42 | return jndi; |
62 | } | |
63 | ||
64 | /** | |
65 | * Set the name of the runner property that will hold the actual JMS | |
66 | * destination once created | |
67 | * | |
68 | * @param property | |
69 | * The property name | |
70 | */ | |
71 | 0 | public void setProperty(String property) { |
72 | 0 | this.property = property; |
73 | } | |
74 | ||
75 | /** | |
76 | * Get the name of the runner property that will hold the actual JMS | |
77 | * destination once created | |
78 | * | |
79 | * @return String The property name | |
80 | */ | |
81 | 28 | public String getProperty() { |
82 | 28 | return property; |
83 | } | |
84 | ||
85 | private String jndi; | |
86 | ||
87 | private String property; | |
88 | } |
|