Jody Garnett a écrit :
> Trying this out as an experiment ... running into a problem with 
> GridFormatFinder .. in short I do not see how the Hints
> make it to the constructor based on the following code:
> 
>> (..snip...)
>
> Hints are used in the hintsFilter ... but by then the provider object 
> has already been created.

Right. FactoryRegistry.getServiceProviders(...), like every methods in 
FactoryRegistry, searchs only among the implementations registered on the 
classpath in META-INF/services/ directories.

Creation of new instances by invocation of "Foo(Hints)" constructor is 
performed 
by the FactoryCreator subclass only. In the particular case of 
GridFormatFinder, 
does it use the following?

    private static final FactoryRegistry registry = new FactoryCreator();

        Martin

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to