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