Home » openejb-3.1.2-src » org.apache » openejb » resource » [javadoc | source]
public class: AutoConnectionTracker [javadoc | source]

All Implemented Interfaces:

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Nested Class Summary:
public static class  AutoConnectionTracker.ConnectionInvocationHandler   
Method from org.apache.openejb.resource.AutoConnectionTracker Summary:
handleObtained,   handleReleased,   setEnvironment
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openejb.resource.AutoConnectionTracker Detail:
 public  void handleObtained(ConnectionTrackingInterceptor interceptor,
    ConnectionInfo connectionInfo,
    boolean reassociate) throws ResourceException 
    Proxies new connection handles so we can detect when they have been garbage collected.
 public  void handleReleased(ConnectionTrackingInterceptor interceptor,
    ConnectionInfo connectionInfo,
    ConnectionReturnAction action) 
    Removes the released collection from the garbage collection reference tracker, since this connection is being release via a normal close method.
 public  void setEnvironment(ConnectionInfo connectionInfo,
    String key) 
    Releases any managed connections held by a garbage collected connection proxy.