Examples to the use of @Resource are wrong.
Just to be syntactically correct, the type value either has to be between double quotes, or .class needs to be appended to return the actual Class object. As per the specification, type is defined as "public abstract Class<?> type". Correction of above would look like:
I would suggest to extend this case by means of a regex search through the documentation.