01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19:
20: package org.apache.geronimo.corba;
21:
22: import org.apache.geronimo.gbean.GBeanInfo;
23: import org.apache.geronimo.gbean.GBeanInfoBuilder;
24: import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
25: import org.apache.geronimo.openejb.EjbDeployment;
26:
27: /**
28: * @version $Revision: 465108 $ $Date: 2006-10-17 17:23:40 -0700 (Tue, 17 Oct 2006) $
29: */
30: public final class TSSLinkGBean {
31:
32: public static final GBeanInfo GBEAN_INFO;
33:
34: static {
35: GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(
36: TSSLinkGBean.class, TSSLink.class,
37: NameFactory.CORBA_TSS);
38: infoBuilder.addAttribute("jndiNames", String[].class, true,
39: true);
40: infoBuilder.addReference("TSSBean", TSSBean.class,
41: NameFactory.CORBA_TSS);
42: //this may not work properly due to variable j2eeType in ejbs.
43: infoBuilder.addReference("EJB", EjbDeployment.class);
44: infoBuilder.setConstructor(new String[] { "jndiNames",
45: "TSSBean", "EJB" });
46:
47: GBEAN_INFO = infoBuilder.getBeanInfo();
48: }
49:
50: public static GBeanInfo getGBeanInfo() {
51: return TSSLinkGBean.GBEAN_INFO;
52: }
53: }
|