KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > web > deploy > MessageDestinationRefDecorator


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23 package com.sun.enterprise.web.deploy;
24
25 import org.apache.catalina.deploy.MessageDestinationRef;
26 import com.sun.enterprise.deployment.MessageDestinationReferenceDescriptor;
27
28 import java.io.Serializable JavaDoc;
29
30
31 /**
32  * Decorator of class <code>org.apache.catalina.deploy.MessageDestinationRef</code>
33  *
34  * @author Jean-Francois Arcand
35  */

36
37 public final class MessageDestinationRefDecorator extends MessageDestinationRef {
38
39     private MessageDestinationReferenceDescriptor decoree;
40     
41     public MessageDestinationRefDecorator(
42                                 MessageDestinationReferenceDescriptor decoree){
43         this.decoree = decoree;
44     }
45
46     // ------------------------------------------------------------- Properties
47

48     public String JavaDoc getDescription() {
49         return decoree.getDescription();
50     }
51
52  
53     public String JavaDoc getLink() {
54         return decoree.getMessageDestinationLinkName();
55     }
56
57  
58     public String JavaDoc getName() {
59         return decoree.getName();
60     }
61
62     public String JavaDoc getType() {
63         return decoree.getDestinationType();
64     }
65
66  
67     public String JavaDoc getUsage() {
68         return decoree.getUsage();
69     }
70
71
72 }
73
Popular Tags