protected boolean cannotInstantiate ( Class < ? > actionClass ) { return actionClass . isAnnotation ( ) || actionClass . isInterface ( ) || actionClass . isEnum ( ) || ( actionClass . getModifiers ( ) & Modifier . ABSTRACT ) != 0 || actionClass . isAnonymousClass ( ) ; }
Interfaces enums annotations and abstract classes cannot be instantiated .