KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > network > jms > InboundQueueBridge


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more
4  * contributor license agreements. See the NOTICE file distributed with
5  * this work for additional information regarding copyright ownership.
6  * The ASF licenses this file to You under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with
8  * the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18 package org.apache.activemq.network.jms;
19
20
21 /**
22  * Create an Inbound Queue Bridge
23  *
24  * @org.apache.xbean.XBean
25  *
26  * @version $Revision: 1.1.1.1 $
27  */

28 public class InboundQueueBridge extends QueueBridge{
29        
30     String JavaDoc inboundQueueName;
31     String JavaDoc localQueueName;
32     /**
33      * Constructor that takes a foriegn destination as an argument
34      * @param inboundQueueName
35      */

36     public InboundQueueBridge(String JavaDoc inboundQueueName){
37        this.inboundQueueName = inboundQueueName;
38        this.localQueueName = inboundQueueName;
39     }
40     
41     /**
42      * Default Contructor
43      */

44     public InboundQueueBridge(){
45     }
46
47     /**
48      * @return Returns the inboundQueueName.
49      */

50     public String JavaDoc getInboundQueueName(){
51         return inboundQueueName;
52     }
53
54     /**
55      * @param inboundQueueName The inboundQueueName to set.
56      */

57     public void setInboundQueueName(String JavaDoc inboundQueueName){
58         this.inboundQueueName=inboundQueueName;
59         if (this.localQueueName == null){
60             this.localQueueName = inboundQueueName;
61         }
62     }
63
64     /**
65      * @return the localQueueName
66      */

67     public String JavaDoc getLocalQueueName(){
68         return localQueueName;
69     }
70
71     /**
72      * @param localQueueName the localQueueName to set
73      */

74     public void setLocalQueueName(String JavaDoc localQueueName){
75         this.localQueueName=localQueueName;
76     }
77     
78 }
79
Popular Tags