private Class < ? > getFieldRole ( Field field , Requirement requirement ) { Class < ? > role ; // Handle case of list or map if ( isDependencyOfListType ( field . getType ( ) ) ) { role = getGenericRole ( field ) ; } else { role = field . getType ( ) ; } return role ; }
Extract component role from the field to inject .