KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > dd > api > client > SunApplicationClient


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /*
20  * SunApplicationClient.java
21  *
22  * Created on February 10, 2006, 11:12 AM
23  *
24  */

25
26 package org.netbeans.modules.j2ee.sun.dd.api.client;
27
28 import org.netbeans.modules.j2ee.sun.dd.api.common.EjbRef;
29 import org.netbeans.modules.j2ee.sun.dd.api.common.MessageDestination;
30 import org.netbeans.modules.j2ee.sun.dd.api.common.MessageDestinationRef;
31 import org.netbeans.modules.j2ee.sun.dd.api.common.ResourceEnvRef;
32 import org.netbeans.modules.j2ee.sun.dd.api.common.ResourceRef;
33 import org.netbeans.modules.j2ee.sun.dd.api.common.ServiceRef;
34
35 import org.netbeans.modules.j2ee.sun.dd.api.VersionNotSupportedException;
36
37 /**
38  *
39  * @author Nitya Doraisamy
40  */

41 public interface SunApplicationClient extends org.netbeans.modules.j2ee.sun.dd.api.RootInterface {
42     public static final String JavaDoc VERSION_5_0_0 = "5.00"; //NOI18N
43
public static final String JavaDoc VERSION_1_4_1 = "1.41"; //NOI18N
44
public static final String JavaDoc VERSION_1_4_0 = "1.40"; //NOI18N
45
public static final String JavaDoc VERSION_1_3_0 = "1.30"; //NOI18N
46

47     public static final String JavaDoc EJB_REF = "EjbRef"; // NOI18N
48
public static final String JavaDoc RESOURCE_REF = "ResourceRef"; // NOI18N
49
public static final String JavaDoc RESOURCE_ENV_REF = "ResourceEnvRef"; // NOI18N
50
public static final String JavaDoc SERVICE_REF = "ServiceRef"; // NOI18N
51
public static final String JavaDoc MESSAGE_DESTINATION_REF = "MessageDestinationRef"; // NOI18N
52
public static final String JavaDoc MESSAGE_DESTINATION = "MessageDestination"; // NOI18N
53
public static final String JavaDoc JAVA_WEB_START_ACCESS = "JavaWebStartAccess"; // NOI18N
54

55     public void setEjbRef(int index, EjbRef value);
56     public EjbRef getEjbRef(int index);
57     public int sizeEjbRef();
58     public void setEjbRef(EjbRef[] value);
59     public EjbRef[] getEjbRef();
60     public int addEjbRef(EjbRef value);
61     public int removeEjbRef(EjbRef value);
62     public EjbRef newEjbRef();
63     
64     public void setResourceRef(int index, ResourceRef value);
65     public ResourceRef getResourceRef(int index);
66     public int sizeResourceRef();
67     public void setResourceRef(ResourceRef[] value);
68     public ResourceRef[] getResourceRef();
69     public int addResourceRef(ResourceRef value);
70     public int removeResourceRef(ResourceRef value);
71     public ResourceRef newResourceRef();
72     
73     public void setResourceEnvRef(int index, ResourceEnvRef value);
74     public ResourceEnvRef getResourceEnvRef(int index);
75     public int sizeResourceEnvRef();
76     public void setResourceEnvRef(ResourceEnvRef[] value);
77     public ResourceEnvRef[] getResourceEnvRef();
78     public int addResourceEnvRef(ResourceEnvRef value);
79     public int removeResourceEnvRef(ResourceEnvRef value);
80     public ResourceEnvRef newResourceEnvRef();
81     
82     //Following not in 1_3-0
83
public void setServiceRef(int index, ServiceRef value);
84     public ServiceRef getServiceRef(int index);
85     public int sizeServiceRef();
86     public void setServiceRef(ServiceRef[] value);
87     public ServiceRef[] getServiceRef();
88     public int addServiceRef(ServiceRef value);
89     public int removeServiceRef(ServiceRef value);
90     public ServiceRef newServiceRef();
91     
92     public void setMessageDestination(int index, MessageDestination value);
93     public MessageDestination getMessageDestination(int index);
94     public int sizeMessageDestination();
95     public void setMessageDestination(MessageDestination[] value);
96     public MessageDestination[] getMessageDestination();
97     public int addMessageDestination(MessageDestination value);
98     public int removeMessageDestination(MessageDestination value);
99     public MessageDestination newMessageDestination();
100     
101     //Following are new in 5_0-0
102
public void setMessageDestinationRef(int index, MessageDestinationRef value) throws VersionNotSupportedException;
103     public MessageDestinationRef getMessageDestinationRef(int index) throws VersionNotSupportedException;
104     public int sizeMessageDestinationRef() throws VersionNotSupportedException;
105     public void setMessageDestinationRef(MessageDestinationRef[] value) throws VersionNotSupportedException;
106     public MessageDestinationRef[] getMessageDestinationRef() throws VersionNotSupportedException;
107     public int addMessageDestinationRef(MessageDestinationRef value) throws VersionNotSupportedException;
108     public int removeMessageDestinationRef(MessageDestinationRef value) throws VersionNotSupportedException;
109     public MessageDestinationRef newMessageDestinationRef() throws VersionNotSupportedException;
110     
111     public void setJavaWebStartAccess(JavaWebStartAccess value) throws VersionNotSupportedException;
112     public JavaWebStartAccess getJavaWebStartAccess() throws VersionNotSupportedException;
113     public JavaWebStartAccess newJavaWebStartAccess() throws VersionNotSupportedException;
114         
115 }
116
Popular Tags