KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > deployment > runtime > connector > SunConnector


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 /**
25  * This generated bean class SunConnector matches the DTD element sun-connector
26  *
27  * Generated on Mon May 13 13:36:49 PDT 2002
28  *
29  * This class matches the root element of the DTD,
30  * and is the root of the following bean graph:
31  *
32  * ResourceAdapter
33  * [attr: JndiName CDATA #REQUIRED ]
34  * [attr: MaxPoolSize CDATA 32]
35  * [attr: SteadyPoolSize CDATA 4]
36  * [attr: MaxWaitTimeInMillis CDATA 10000]
37  * [attr: IdleTimeoutInSeconds CDATA 1000]
38  * Description? - String
39  * PropertyElement[0,n] - Boolean
40  * [attr: Name CDATA #REQUIRED ]
41  * [attr: Value CDATA #REQUIRED ]
42  * RoleMap?
43  * [attr: MapId CDATA #REQUIRED ]
44  * Description? - String
45  * MapElement[0,n]
46  * Principal[1,n]
47  * [attr: UserName CDATA #REQUIRED ]
48  * Description? - String
49  * BackendPrincipal - Boolean
50  * [attr: UserName CDATA #REQUIRED ]
51  * [attr: Password CDATA #REQUIRED ]
52  * [attr: Credential CDATA #REQUIRED ]
53  *
54  */

55
56 package com.sun.enterprise.deployment.runtime.connector;
57
58 import com.sun.enterprise.deployment.runtime.RuntimeDescriptor;
59
60 /**
61  * This class was based on the schema2beans generated one modified
62  * to remove its dependencies on schema2beans libraries.
63  
64  * @author Jerome Dochez
65  * @version
66  */

67 public class SunConnector extends RuntimeDescriptor
68 {
69     
70     static public final String JavaDoc RESOURCE_ADAPTER = "ResourceAdapter"; // NOI18N
71
static public final String JavaDoc ROLE_MAP = "RoleMap"; // NOI18N
72

73     
74     // This attribute is mandatory
75
public void setResourceAdapter(ResourceAdapter value)
76     {
77     this.setValue(RESOURCE_ADAPTER, value);
78     }
79     
80     //
81
public ResourceAdapter getResourceAdapter()
82     {
83     return (ResourceAdapter)this.getValue(RESOURCE_ADAPTER);
84     }
85     
86     // This attribute is optional
87
public void setRoleMap(RoleMap value)
88     {
89     this.setValue(ROLE_MAP, value);
90     }
91     
92     //
93
public RoleMap getRoleMap()
94     {
95     return (RoleMap)this.getValue(ROLE_MAP);
96     }
97     
98     // This method verifies that the mandatory properties are set
99
public boolean verify()
100     {
101     return true;
102     }
103 }
104
Popular Tags