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.management.geronimo;
17:
18: import java.util.Map;
19: import java.util.List;
20:
21: /**
22: * @version $Rev: 546411 $ $Date: 2007-06-12 01:09:40 -0700 (Tue, 12 Jun 2007) $
23: */
24: public interface JCAManagedConnectionFactory extends
25: org.apache.geronimo.management.JCAManagedConnectionFactory {
26: public String getManagedConnectionFactoryClass();
27:
28: public String getConnectionFactoryInterface();
29:
30: public String[] getImplementedInterfaces();
31:
32: public String getConnectionFactoryImplClass();
33:
34: public String getConnectionInterface();
35:
36: public String getConnectionImplClass();
37:
38: /**
39: * Gets the config properties in the form of a map where the key is the
40: * property name and the value is property type (as a Class).
41: *
42: * @return map of config property name to config property type name
43: */
44: public Map<String, Class> getConfigProperties();
45:
46: public void setConfigProperty(String property, Object value)
47: throws Exception;
48:
49: public Object getConfigProperty(String property) throws Exception;
50:
51: /**
52: * Gets the ConnectionManager associated with this managed
53: * connection factory. This object should implement
54: * javax.resource.spi.ConnectionManager and
55: * org.apache.geronimo.connector.outbound.PoolingAttributes
56: * @return ConnectionManager and PoolingAttributes implementation
57: */
58: public Object getConnectionManagerContainer();
59:
60: public Object getConnectionFactory() throws Exception;
61: }
|