package com.telephoners.krakyournet.ctf.repositories;

import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.telephoners.krakyournet.ctf.core.DataConnector;
import org.ektorp.support.CouchDbDocument;
import org.ektorp.support.CouchDbRepositorySupport;

@Singleton
public class Repository<T extends CouchDbDocument> extends CouchDbRepositorySupport<T>
{
    @Inject
    public Repository(final Class<T> type, final DataConnector<T> connector)
    {
        super(type, connector.getConnector());
    }
}
