001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 */ 019 020 021 package org.apache.geronimo.corba; 022 023 import org.apache.geronimo.gbean.GBeanInfo; 024 import org.apache.geronimo.gbean.GBeanInfoBuilder; 025 import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory; 026 import org.apache.geronimo.openejb.EjbDeployment; 027 028 /** 029 * @version $Revision: 465108 $ $Date: 2006-10-17 17:23:40 -0700 (Tue, 17 Oct 2006) $ 030 */ 031 public final class TSSLinkGBean { 032 033 public static final GBeanInfo GBEAN_INFO; 034 035 static { 036 GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(TSSLinkGBean.class, TSSLink.class, NameFactory.CORBA_TSS); 037 infoBuilder.addAttribute("jndiNames", String[].class, true, true); 038 infoBuilder.addReference("TSSBean", TSSBean.class, NameFactory.CORBA_TSS); 039 //this may not work properly due to variable j2eeType in ejbs. 040 infoBuilder.addReference("EJB", EjbDeployment.class); 041 infoBuilder.setConstructor(new String[]{"jndiNames", "TSSBean", "EJB"}); 042 043 GBEAN_INFO = infoBuilder.getBeanInfo(); 044 } 045 046 public static GBeanInfo getGBeanInfo() { 047 return TSSLinkGBean.GBEAN_INFO; 048 } 049 }