package com.l7tech.server.transport.jms2;

import org.apache.commons.pool.PoolableObjectFactory;

class g implements PoolableObjectFactory<SessionHolder> {
   final PooledConnection this$0;

   g(PooledConnection var1) {
      this.this$0 = var1;
   }

   public SessionHolder makeObject() throws Exception {
      return this.this$0.newConnection(this.this$0.c);
   }

   public void destroyObject(SessionHolder var1) throws Exception {
      var1.unRef();
   }

   public boolean validateObject(SessionHolder var1) {
      return true;
   }

   public void activateObject(SessionHolder var1) throws Exception {
   }

   public void passivateObject(SessionHolder var1) throws Exception {
   }
}
