configuration_file_parser.segment.ReasonerClassesParser Maven / Gradle / Ivy
package configuration_file_parser.segment;
import org.apache.commons.configuration2.Configuration;
import org.apache.commons.configuration2.ex.ConfigurationException;
import api.running.IToolBinding;
import configuration_file_parser.ParserConstants;
import configuration_file_parser.ParserUtils;
import constants.ToolsConstants;
public class ReasonerClassesParser {
public static Class extends IToolBinding> parse(Configuration apacheConfigurationObject)
throws ConfigurationException, ClassNotFoundException {
String classNickname = ParserUtils.popProperty(ParserConstants.META_REASONER_KW, apacheConfigurationObject);
return ToolsConstants.getClassByName(classNickname);
}
}