* @see Enhanced
* @see Enhanced#enhancedFor()
*/
public static Boolean hasBeenEnhancedForFeature(final Class<?> controllerClass, final String featureName) {
boolean hasBeenEnhanced = false;
final Enhanced enhancedAnnotation = controllerClass.getAnnotation(Enhanced.class);
if(enhancedAnnotation != null) {
final String[] enhancedFor = enhancedAnnotation.enhancedFor();
if(enhancedFor != null) {
hasBeenEnhanced = GrailsArrayUtils.contains(enhancedFor, featureName);
}
}
return hasBeenEnhanced;