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.corba;
17:
18: import org.apache.geronimo.gbean.GBeanInfo;
19: import org.apache.geronimo.gbean.GBeanInfoBuilder;
20: import org.apache.geronimo.gbean.AbstractName;
21: import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
22: import org.apache.geronimo.corba.security.config.ConfigAdapter;
23: import org.apache.geronimo.corba.security.config.css.CSSConfig;
24: import org.apache.geronimo.corba.security.config.ssl.SSLConfig;
25: import org.omg.CORBA.ORB;
26:
27: import java.net.URI;
28:
29: import javax.transaction.TransactionManager;
30:
31: /**
32: * @version $Revision$ $Date$
33: */
34: public final class CSSBeanGBean {
35:
36: public static final GBeanInfo GBEAN_INFO;
37:
38: static {
39: GBeanInfoBuilder infoFactory = GBeanInfoBuilder.createStatic(
40: CSSBeanGBean.class, CSSBean.class,
41: NameFactory.CORBA_CSS);
42:
43: infoFactory.addAttribute("description", String.class, true);
44: infoFactory.addAttribute("cssConfig", CSSConfig.class, true);
45: infoFactory.addAttribute("ORB", ORB.class, false);
46: infoFactory.addOperation("getHome", new Class[] { URI.class,
47: String.class });
48:
49: infoFactory.addReference("TransactionManager",
50: TransactionManager.class, NameFactory.JTA_RESOURCE);
51: infoFactory.addReference("SSLConfig", SSLConfig.class,
52: NameFactory.CORBA_SSL);
53: infoFactory.addReference("ConfigAdapter", ConfigAdapter.class,
54: NameFactory.ORB_CONFIG);
55: infoFactory.addAttribute("abstractName", AbstractName.class,
56: false);
57: infoFactory.addAttribute("classLoader", ClassLoader.class,
58: false);
59:
60: infoFactory.setConstructor(new String[] { "ConfigAdapter",
61: "TransactionManager", "SSLConfig", "abstractName",
62: "classLoader" });
63:
64: GBEAN_INFO = infoFactory.getBeanInfo();
65: }
66:
67: public static GBeanInfo getGBeanInfo() {
68: return GBEAN_INFO;
69: }
70: }
|