Java tutorial
//package com.java2s; import java.util.*; public class Main { @SuppressWarnings("unchecked") public static List<Object> loadEnums(List<String> classFullNameList) { Class aeClass = null; List<Object> retList = new ArrayList<Object>(); for (String aeString : classFullNameList) { try { aeClass = Class.forName(aeString); } catch (ClassNotFoundException e) { e.printStackTrace(); } for (Object ae : EnumSet.allOf(aeClass)) { retList.add(ae); } } return retList; } }