/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.apache.commons.pool.PoolableObjectFactory
 */
package com.l7tech.server.transport.jms2;

import com.l7tech.server.transport.jms2.PooledConnection;
import com.l7tech.server.transport.jms2.SessionHolder;
import org.apache.commons.pool.PoolableObjectFactory;

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

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

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

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

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

    public void activateObject(SessionHolder sessionHolder) throws Exception {
    }

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

