KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > connector > ResourceAdapterModuleImplGBean


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 package org.apache.geronimo.connector;
19
20 import java.util.Map JavaDoc;
21
22 import org.apache.geronimo.gbean.GBeanData;
23 import org.apache.geronimo.gbean.GBeanInfo;
24 import org.apache.geronimo.gbean.GBeanInfoBuilder;
25 import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
26 import org.apache.geronimo.management.J2EEApplication;
27 import org.apache.geronimo.management.J2EEServer;
28 import org.apache.geronimo.management.geronimo.ResourceAdapter;
29 import org.apache.geronimo.management.geronimo.ResourceAdapterModule;
30
31 /**
32  * @version $Revision: 476049 $
33  */

34 public class ResourceAdapterModuleImplGBean {
35
36     public static final GBeanInfo GBEAN_INFO;
37
38     static {
39         GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(ResourceAdapterModuleImplGBean.class, ResourceAdapterModuleImpl.class, NameFactory.RESOURCE_ADAPTER_MODULE);
40         infoBuilder.addReference("J2EEServer", J2EEServer.class, null);
41         infoBuilder.addReference("J2EEApplication", J2EEApplication.class, null);
42
43         infoBuilder.addAttribute("deploymentDescriptor", String JavaDoc.class, true);
44
45         infoBuilder.addReference("ResourceAdapter", ResourceAdapter.class, NameFactory.RESOURCE_ADAPTER);
46         infoBuilder.addAttribute("objectName", String JavaDoc.class, false);
47         infoBuilder.addAttribute("server", String JavaDoc.class, false);
48         infoBuilder.addAttribute("application", String JavaDoc.class, false);
49         infoBuilder.addAttribute("javaVMs", String JavaDoc[].class, false);
50         infoBuilder.addAttribute("resourceAdapters", String JavaDoc[].class, false);
51
52         infoBuilder.addAttribute("resourceAdapterGBeanData", GBeanData.class, true);
53         infoBuilder.addAttribute("activationSpecInfoMap", Map JavaDoc.class, true);
54         infoBuilder.addAttribute("adminObjectInfoMap", Map JavaDoc.class, true);
55         infoBuilder.addAttribute("managedConnectionFactoryInfoMap", Map JavaDoc.class, true);
56
57         infoBuilder.addAttribute("displayName", String JavaDoc.class, true, false);
58         infoBuilder.addAttribute("description", String JavaDoc.class, true, false);
59         infoBuilder.addAttribute("vendorName", String JavaDoc.class, true, false);
60         infoBuilder.addAttribute("EISType", String JavaDoc.class, true, false);
61         infoBuilder.addAttribute("resourceAdapterVersion", String JavaDoc.class, true, false);
62
63
64         infoBuilder.addInterface(ResourceAdapterModule.class);
65
66         infoBuilder.setConstructor(new String JavaDoc[]{
67                 "objectName",
68                 "ResourceAdapter",
69                 "J2EEServer",
70                 "J2EEApplication",
71                 "deploymentDescriptor",
72                 "resourceAdapterGBeanData",
73                 "activationSpecInfoMap",
74                 "adminObjectInfoMap",
75                 "managedConnectionFactoryInfoMap",
76                 "displayName",
77                 "description",
78                 "vendorName",
79                 "resourceAdapterVersion",
80                 "EISType"
81         });
82
83         GBEAN_INFO = infoBuilder.getBeanInfo();
84     }
85
86     public static GBeanInfo getGBeanInfo() {
87         return GBEAN_INFO;
88     }
89
90 }
91
Popular Tags