KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > connectors > DeferredResourceConfig


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.connectors;
25
26 import
27       com.sun.enterprise.config.serverbeans.ConnectorConnectionPool;
28 import com.sun.enterprise.config.*;
29 import com.sun.enterprise.config.serverbeans.*;
30
31 public class DeferredResourceConfig {
32
33
34     private String JavaDoc rarName;
35     private AdminObjectResource adminObject;
36     private ConnectorConnectionPool connectionPool;
37     private ConnectorResource connectorResource;
38     private JdbcConnectionPool jdbcConnectionPool;
39     private JdbcResource jdbcResource;
40     private ResourceAdapterConfig[] resourceAdapterConfig;
41     private ConfigBean[] resourcesToLoad;
42
43
44     public DeferredResourceConfig() {
45
46     }
47
48     public DeferredResourceConfig(
49                 String JavaDoc rarName,
50                 AdminObjectResource adminObject,
51                 ConnectorConnectionPool connectionPool,
52                 ConnectorResource connectorResource,
53                 JdbcConnectionPool jdbcConnectionPool,
54                 JdbcResource jdbcResource,
55                 ResourceAdapterConfig[] resAdapterConfig)
56     {
57
58         this.rarName = rarName;
59         this.adminObject = adminObject;
60         this.connectionPool = connectionPool;
61         this.connectorResource = connectorResource;
62         this.jdbcConnectionPool = jdbcConnectionPool;
63         this.jdbcResource = jdbcResource;
64         this.resourceAdapterConfig = resAdapterConfig;
65         
66     }
67
68     public void setRarName(String JavaDoc rarName) {
69         this.rarName = rarName;
70     }
71
72     public String JavaDoc getRarName() {
73         return this.rarName;
74     }
75
76     public void setAdminObject(AdminObjectResource adminObject) {
77         this.adminObject = adminObject;
78     }
79
80     public AdminObjectResource getAdminObject() {
81         return this.adminObject;
82     }
83     public void setConnectorConnectionPool(
84                           ConnectorConnectionPool connectionPool)
85     {
86         this.connectionPool = connectionPool;
87     }
88
89     public ConnectorConnectionPool getConnectorConnectionPool() {
90         return this.connectionPool;
91     }
92
93     public void setConnectorResource( ConnectorResource connectorResource) {
94         this.connectorResource = connectorResource;
95     }
96
97     public ConnectorResource getConnectorResource() {
98         return this.connectorResource;
99     }
100     public void setJdbcConnectionPool( JdbcConnectionPool jdbcConnectionPool) {
101         this.jdbcConnectionPool = jdbcConnectionPool;
102     }
103
104     public JdbcConnectionPool getJdbcConnectionPool() {
105         return this.jdbcConnectionPool;
106     }
107     public void setJdbcResource( JdbcResource jdbcResource) {
108         this.jdbcResource = jdbcResource;
109     }
110
111     public JdbcResource getJdbcResource() {
112         return this.jdbcResource;
113     }
114     public void setResourceAdapterConfig(
115             ResourceAdapterConfig[] resourceAdapterConfig)
116     {
117         this.resourceAdapterConfig = resourceAdapterConfig;
118     }
119
120     public ResourceAdapterConfig[] getResourceAdapterConfig() {
121         return this.resourceAdapterConfig;
122     }
123     public void setResourcesToLoad( ConfigBean[] resourcesToLoad)
124     {
125         this.resourcesToLoad = resourcesToLoad;
126     }
127
128     public ConfigBean[] getResourcesToLoad() {
129         return this.resourcesToLoad;
130     }
131 }
132
Popular Tags