01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: */package org.apache.geronimo.connector;
17:
18: import javax.resource.spi.XATerminator;
19: import javax.resource.spi.work.WorkManager;
20:
21: import org.apache.geronimo.gbean.GBeanInfo;
22: import org.apache.geronimo.gbean.GBeanInfoBuilder;
23: import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
24:
25: /**
26: *
27: * @version $Revision: 476049 $
28: */
29: public class GeronimoBootstrapContextGBean {
30:
31: public static final GBeanInfo GBEAN_INFO;
32:
33: static {
34: GBeanInfoBuilder infoFactory = GBeanInfoBuilder.createStatic(
35: GeronimoBootstrapContextGBean.class,
36: GeronimoBootstrapContext.class,
37: NameFactory.JCA_BOOTSTRAP_CONTEXT);
38:
39: infoFactory.addReference("WorkManager", WorkManager.class,
40: NameFactory.JCA_WORK_MANAGER);
41: infoFactory.addReference("XATerminator", XATerminator.class,
42: NameFactory.JCA_XA_TERMINATOR);
43:
44: infoFactory.setConstructor(new String[] { "WorkManager",
45: "XATerminator" });
46:
47: GBEAN_INFO = infoFactory.getBeanInfo();
48: }
49:
50: public static GBeanInfo getGBeanInfo() {
51: return GBEAN_INFO;
52: }
53:
54: }
|