Cleaned up the isGATKLite check

This commit is contained in:
Eric Banks 2012-07-17 12:46:16 -04:00
parent 62c5228048
commit 3a64398d07
2 changed files with 4 additions and 11 deletions

View File

@ -27,8 +27,8 @@ package org.broadinstitute.sting.utils;
import org.broadinstitute.sting.utils.classloader.ProtectedPackageSource;
public class DummyProtectedClass implements ProtectedPackageSource {
public class DummyProtectedWalker implements ProtectedPackageSource {
// THIS CLASS IS USED JUST SO THAT WE CAN TEST WHETHER WE ARE USING THE LITE OR FULL VERSION OF THE GATK
// **** DO NOT REMOVE! ****
}

View File

@ -207,18 +207,11 @@ public class GenomeAnalysisEngine {
*/
public boolean isGATKLite() {
if ( isLiteVersion == null ) {
final List<Class<? extends Object>> classes = new PluginManager<Object>(Object.class).getPlugins();
isLiteVersion = true;
for ( Class c : classes ) {
if ( c.getSimpleName().equals(DummyProtectedClassName)) {
isLiteVersion = false;
break;
}
}
isLiteVersion = new PluginManager<Object>(Object.class).exists(DummyProtectedWalkerName);
}
return isLiteVersion;
}
private static final String DummyProtectedClassName = "DummyProtectedClass";
private static final String DummyProtectedWalkerName = "DummyProtectedWalker";
private static Boolean isLiteVersion = null;
/**