use of org.mifos.framework.exceptions.EnumsNotLoadedException in project head by mifos.
the class EnumPlugin method buildClasses.
List<Class> buildClasses(List<String> enumFileNameList) throws EnumsNotLoadedException {
List<Class> enumClassNameList = new ArrayList<Class>();
String constantFileName = null;
try {
for (String fileName : enumFileNameList) {
constantFileName = fileName.trim();
enumClassNameList.add(Class.forName(constantFileName));
}
} catch (ClassNotFoundException cnfe) {
Object[] values = new Object[] { constantFileName };
throw new EnumsNotLoadedException(ExceptionConstants.ENUMSNOTLOADEDEXCEPTION, cnfe, values);
}
return enumClassNameList;
}
Aggregations