Hi Martin I finally figured out why this conversation was going sideways 
on me; you can perform this transition in a compatible way...  note you 
should probably comment out these static methods while you make the 
transition; and we can add them back into the mix (deprecated if you 
want) for the 2.5.0 release.

Consider this section from the wiki page:
>    class ReferencingFactoryFinder {
>    public static final ReferencingFactoryFinder DEFAULT = new 
> ReferencingFactoryFinder();
>    /** Hints used by create methods; may be null to indicate use of global 
> hints */
>    final Hints hints;
>    final boolean strict;
>    /**
>     * Makes use of global hints.
>     * @deprecated Please use ReferencingFactoryFinder.DEFAULT
>     */
>    ReferencingFactoryFinder() {
>         this( null, true );      
>    }
>    public ReferencingFactoryFinder( Hints hints ) {
>       this( hints, false );
>    }
>    public ReferencingFactoryFinder( Hints hints, boolean strict ) {
>       this.hints = hints;
>       this.strict = strict;
>    }
>    public Hints getHints(){
>       if( strict ){
>          if( hints == null ){
>              return Hints.NULL;
>          }
>          return hints;
>       }
>       else {
>          return GeoTools.addDefaultHints( hints );
>       }
>    }
>    }public Set<CRSAuthorityFactory> getCRSAuthorityFactories(){
>        return getFactories(CRSAuthorityFactory.class, getHints());
>    }
>    public CRSAuthorityFactory getCRSAuthorityFactory(final String authority){
>        return getAuthorityFactory(CRSAuthorityFactory.class, authority, 
> getHints(), Hints.CRS_AUTHORITY_FACTORY);
>    }
>    // origional methods available for client code (commented out while we 
> make the transition )
>    public static Set<CRSAuthorityFactory> getCRSAuthorityFactories(final 
> Hints hints) {
>        return new ReferencingFactoryFinder( hints 
> ).getCRSAuthorityFactories();
>    }
>    public static CRSAuthorityFactory getCRSAuthorityFactory(final String 
> authority, final Hints  hints){
>        return new ReferencingFactoryFinder( hints ).getCRSAuthorityFactories( 
> String authority );
>    }
Here is the page again:
- 
http://docs.codehaus.org/display/GEOTOOLS/ReferencingFactoryFinder+incompatible+change


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to