edu.uiuc.ncsa.sas.storage.SASClientStoreProvider Maven / Gradle / Ivy
package edu.uiuc.ncsa.sas.storage;
import edu.uiuc.ncsa.sas.client.SASClient;
import edu.uiuc.ncsa.security.core.IdentifiableProvider;
import edu.uiuc.ncsa.security.core.configuration.provider.MultiTypeProvider;
import edu.uiuc.ncsa.security.core.util.MyLoggingFacade;
import org.apache.commons.configuration.tree.ConfigurationNode;
/**
* Created by Jeff Gaynor
* on 8/22/22 at 2:01 PM
*/
public class SASClientStoreProvider extends MultiTypeProvider {
public SASClientStoreProvider() {
}
public SASClientStoreProvider(ConfigurationNode config, boolean disableDefaultStore, MyLoggingFacade logger, String type, String target,
IdentifiableProvider extends SASClient> clientProvider) {
super(config, disableDefaultStore, logger, type, target);
this.clientProvider = clientProvider;
}
/*
public SATClientStoreProvider(MyLoggingFacade logger, String type, String target) {
super(logger, type, target);
}
*/
protected IdentifiableProvider extends SASClient> clientProvider;
@Override
public T getDefaultStore() {
return (T) new ClientMemoryStore(clientProvider);
}
}