KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > deployment > WritableJndiNameEnvironment


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.deployment;
24
25 import com.sun.enterprise.deployment.types.EjbReference;
26
27 /**
28  * Objects implementing this interface allow their
29  * environment properties, ejb references and resource
30  * references to be written.
31  *
32  * @author Danny Coward
33  */

34
35 public interface WritableJndiNameEnvironment extends JndiNameEnvironment {
36
37     /**
38      * Adds the specified environment property to the receiver.
39      *
40      * @param environmentProperty the EnvironmentProperty to add.
41      *
42      */

43     public void addEnvironmentProperty(EnvironmentProperty environmentProperty);
44     
45     /**
46      * Removes the specified environment property from receiver.
47      *
48      * @param environmentProperty the EnvironmentProperty to remove.
49      *
50      */

51     public void removeEnvironmentProperty(
52             EnvironmentProperty environmentProperty);
53     
54     /**
55      * Adds the specified ejb reference to the receiver.
56      *
57      * @param ejbReference the EjbReferenceDescriptor to add.
58      *
59      */

60     public void addEjbReferenceDescriptor(EjbReference ejbReference);
61     
62     /**
63      * Removes the specificed ejb reference from the receiver.
64      *
65      * @param ejbReference the EjbReferenceDescriptor to remove.
66      *
67      */

68     public void removeEjbReferenceDescriptor(
69             EjbReference ejbReference);
70     
71     /**
72      * Adds the specified resource reference to the receiver.
73      *
74      * @param resourceReference the ResourceReferenceDescriptor to add.
75      *
76      */

77     public void addResourceReferenceDescriptor(
78             ResourceReferenceDescriptor resourceReference);
79     
80     /**
81      * Removes the specified resource reference from the receiver.
82      *
83      * @param resourceReference the ResourceReferenceDescriptor to remove.
84      *
85      */

86     public void removeResourceReferenceDescriptor(
87             ResourceReferenceDescriptor resourceReference);
88
89
90     /**
91      * Adds the specified JMS destination reference to the receiver.
92      *
93      * @param the JmsDestinationReferenceDescriptor to add.
94      *
95      */

96     public void addJmsDestinationReferenceDescriptor(
97         JmsDestinationReferenceDescriptor jmsDestinationReference);
98
99
100     /**
101      * Removes the specified JMS destination reference from the receiver.
102      *
103      * @param the JmsDestinationReferenceDescriptor to remove.
104      *
105      */

106     public void removeJmsDestinationReferenceDescriptor(
107         JmsDestinationReferenceDescriptor jmsDestinationReference);
108
109     /**
110      * Adds the specified message destination reference to the receiver.
111      *
112      * @param the MessageDestinationReferenceDescriptor to add.
113      *
114      */

115     public void addMessageDestinationReferenceDescriptor
116         (MessageDestinationReferenceDescriptor msgDestRef);
117
118     /**
119      * Removes the specified message destination reference from the receiver.
120      *
121      * @param ref MessageDestinationReferenceDescriptor to remove.
122      *
123      */

124     public void removeMessageDestinationReferenceDescriptor
125         (MessageDestinationReferenceDescriptor msgDestRef);
126                                                          
127     /**
128      * Adds the specified post-construct descriptor to the receiver.
129      *
130      * @param the post-construct LifecycleCallbackDescriptor to add.
131      *
132      */

133     public void addPostConstructDescriptor
134         (LifecycleCallbackDescriptor postConstructDesc);
135
136     /**
137      * Adds the specified pre-destroy descriptor to the receiver.
138      *
139      * @param the pre-destroy LifecycleCallbackDescriptor to add.
140      *
141      */

142     public void addPreDestroyDescriptor
143         (LifecycleCallbackDescriptor preDestroyDesc);
144
145     /**
146      * Adds the specified service reference to the receiver.
147      *
148      * @param the ServiceReferenceDescriptor to add.
149      *
150      */

151     public void addServiceReferenceDescriptor(
152             ServiceReferenceDescriptor serviceReference);
153
154
155     /**
156      * Removes the specified service reference from the receiver.
157      *
158      * @param the ServiceReferenceDescriptor to remove.
159      *
160      */

161     public void removeServiceReferenceDescriptor(
162         ServiceReferenceDescriptor serviceReference);
163
164     public void addEntityManagerFactoryReferenceDescriptor(
165                 EntityManagerFactoryReferenceDescriptor reference);
166
167     public void addEntityManagerReferenceDescriptor(
168                 EntityManagerReferenceDescriptor reference);
169
170
171
172 }
173
174
Popular Tags