View Javadoc

1   /**
2    * $Id$
3    *
4    * =========================================================================
5    *
6    * Copyright 2005 Tubo
7    *
8    *  Licensed under the Apache License, Version 2.0 (the "License");
9    *  you may not use this file except in compliance with the License.
10   *  You may obtain a copy of the License at
11   *
12   *     http://www.apache.org/licenses/LICENSE-2.0
13   *
14   *  Unless required by applicable law or agreed to in writing, software
15   *  distributed under the License is distributed on an "AS IS" BASIS,
16   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   *  See the License for the specific language governing permissions and
18   *  limitations under the License.
19   */
20  package org.tubo.resource.connection;
21  
22  //log
23  import org.apache.commons.logging.Log;
24  import org.apache.commons.logging.LogFactory;
25  //tubo
26  import org.tubo.resource.Resource;
27  import org.tubo.resource.baseimpl.BaseManagerImpl;
28  
29  /**
30   * <p></p>
31   * <p/>
32   * Created: Dec 26, 2006, 5:20:08 PM <br>
33   * Last Modification Date: $Date$
34   * </p>
35   *
36   * @author maldito_orco (maldito_orco@users.sourceforge.net)
37   * @version $Revision$
38   */
39  public class BaseConnectionManagerImpl  extends BaseManagerImpl implements ConnectionManager {
40      public static final String RCS_ID = "$Id$";
41      private static Log log = LogFactory.getLog(BaseConnectionManagerImpl.class);
42  
43      /**
44       * A get resource wrapper for a Connection
45       * @return a Connection managed by this manager
46       */
47      public Connection getConnection() {
48          Resource resource = get();
49          Connection connection = (Connection)resource;
50          return connection;
51      }
52  }