Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
While analyzing some comments on uimaFIT recently on the UIMA users mailing list, it occurred to me that the default value for "key" should probably be the name of the annotated field, not the name of the type of the annotated field. That means
public static final String FOO_KEY = "foo"; @ExternalResource(key = FOO_KEY) private Foo foo;
could be written as simply
@ExternalResource
private Foo foo;
However, this would mean that
bindResource(desc, DummyResource.class);
wouldn't work anymore, because this kind of binding relies on the fact that the key defaults to the field type name. I think though, that this is a rather rare case.
Btw. the UIMA mailing list post is:
http://mail-archives.apache.org/mod_mbox/uima-user/201103.mbox/%3cloom.20110321T183824-248@post.gmane.org%3e
Google Code Issue: https://code.google.com/p/uimafit/issues/detail?id=71