use of com.emc.storageos.volumecontroller.impl.smis.srdf.SRDFOperationContextFactory40 in project coprhd-controller by CoprHD.
the class SRDFOperations method getContextFactory.
/**
* Returns the appropriate factory based on the Provider version.
*
* @param system Local or remote system
* @return Concrete factory of AbstractSRDFOperationContextFactory
*/
private AbstractSRDFOperationContextFactory getContextFactory(StorageSystem system) {
AbstractSRDFOperationContextFactory factory = null;
if (system.getUsingSmis80() != null && system.getUsingSmis80()) {
factory = new SRDFOperationContextFactory80();
} else {
factory = new SRDFOperationContextFactory40();
}
factory.setDbClient(dbClient);
factory.setHelper(helper);
factory.setUtils(utils);
return factory;
}
Aggregations