uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Kottmann <kottm...@gmail.com>
Subject generics: ResourceFactory.produceResource
Date Wed, 19 Aug 2009 17:54:02 GMT
The current declaration with out generics:

  public Resource produceResource(Class aResourceClass, 
ResourceSpecifier aSpecifier,
          Map<String, Object> aAdditionalParams) throws 
ResourceInitializationException;

Can it be assumed that aResourceClass is always a class which extends 
Resource,
if so it could be declared as Class<? extends Resource>.

There are many places where aResourceClass occurs, we should handle them 
all identical.

Jörn


Mime
View raw message