Explicitly use a NumericConverterFactory on NumericFileNameExtractor class
--------------------------------------------------------------------------

                 Key: GEOT-3404
                 URL: http://jira.codehaus.org/browse/GEOT-3404
             Project: GeoTools
          Issue Type: Improvement
          Components: gc imagemosaic
    Affects Versions: 2.7-beta1
            Reporter: Daniele Romagnoli
            Assignee: Daniele Romagnoli
            Priority: Minor
             Fix For: 2.7-RC1, 2.8-M1


The NumericFileNameExtractor class allows to collect properties from files with 
a "Numeric" file name.
Right now, its constructor is looking for ConvertersFactories able to convert 
from a String class to a target Number subclass. Then it creates a converter 
from the factory found.
Depending on registration order, sometime it can get an XMLConverterFactory or 
a CommonsConverterFactory whilst a NumericConverterFactory would be the more 
appropriate.
Therefore, we can avoid this "scan for factories" and use a static 
NumericConverterFactory instance to setup converters.





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to