/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource
 */
package com.l7tech.server.util;

import java.util.logging.Logger;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class UserSwitchedRoutingDataSource
extends AbstractRoutingDataSource {
    private static final ThreadLocal<Object> a = new ThreadLocal();

    public static void setDataSourceKey(Object object) {
        a.set(object);
    }

    public Logger getParentLogger() {
        throw new UnsupportedOperationException();
    }

    protected Object determineCurrentLookupKey() {
        return a.get();
    }
}

