List of usage examples for org.apache.commons.lang3.reflect FieldUtils readStaticField
public static Object readStaticField(final Class<?> cls, final String fieldName, final boolean forceAccess) throws IllegalAccessException
From source file:org.sparkcommerce.openadmin.web.rulebuilder.enums.AbstractRuleBuilderEnumOptionsExtensionListener.java
@SuppressWarnings("unchecked") protected Map<String, ? extends SparkEnumerationType> getTypes(Class<? extends SparkEnumerationType> clazz) { try {// w ww.j av a 2 s . c o m return (Map<String, ? extends SparkEnumerationType>) FieldUtils.readStaticField(clazz, "TYPES", true); } catch (IllegalAccessException e) { throw new RuntimeException(e); } }