KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > deployment > types > MessageDestinationReference


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
24 package com.sun.enterprise.deployment.types;
25
26 import com.sun.enterprise.deployment.web.ContextParameter;
27
28 import com.sun.enterprise.deployment.RunAsIdentityDescriptor;
29 import com.sun.enterprise.deployment.EjbDescriptor;
30 import com.sun.enterprise.deployment.MessageDestinationDescriptor;
31 import com.sun.enterprise.deployment.BundleDescriptor;
32
33 /**
34  * Protocol associated with defining an EJB Interface
35  *
36  * @author Kenneth Saks
37  */

38
39 public interface MessageDestinationReference extends MessageDestinationReferencer, NamedInformation {
40
41     public static String JavaDoc CONSUMES = "Consumes";
42     public static String JavaDoc PRODUCES = "Produces";
43     public static String JavaDoc CONSUMES_AND_PRODUCES = "ConsumesProduces";
44
45     /**
46      * @return the type of the message destination reference
47      */

48     public String JavaDoc getType();
49
50     /**
51      * @param type the type of the message destination reference
52      */

53     public void setType(String JavaDoc type);
54
55     /**
56      * @return the usage type of the message destination reference
57      * (Consumes, Produces, ConsumesProduces)
58      */

59     public String JavaDoc getUsage();
60
61     /**
62      * @param usage the usage type of the message destination reference
63      * (Consumes, Produces, ConsumesProduces)
64      */

65     public void setUsage(String JavaDoc usage);
66
67     /**
68      * Set the referring bundle, i.e. the bundle within which this
69      * message destination reference is declared.
70      */

71     public void setReferringBundleDescriptor(BundleDescriptor referringBundle);
72
73     /**
74      * Get the referring bundle, i.e. the bundle within which this
75      * message destinaion reference is declared.
76      */

77     public BundleDescriptor getReferringBundleDescriptor();
78
79 }
80
81
Popular Tags