Details
Description
Consider deprecating the priority field in org.geotools.factory.AbstractFactory. We could introduce a protected ordering(Object other) method (or something like that) instead. This method would returns +1 if this factory consider that it should have precedence over the specified factory, -1 if the other factory should have precedence, or 0 otherwise. Such approach would be more consistent with the J2SE ServiceRegistry.setOrdering(...) method. It is also a better match of pratical situations: it is quite inconvenient to define an absolute priority number (it force to take in consideration all known factories), and also cause a useless ordering between unrelated factories. Furthermore, experience suggest that the current "priority" level mechanism is badly suited for ordering between org.geotools.referencing.factory.epsg.DefaultFactory instances backed by different versions of EPSG database.
Issue Links
Activity
| Assignee | Martin Desruisseaux [ desruisseaux ] |
| Fix Version/s | 2.7-M0 [ 15891 ] |
| Fix Version/s | 2.7-M1 [ 16521 ] | |
| Fix Version/s | 2.7-M0 [ 15891 ] |
| Fix Version/s | 2.7-RC1 [ 16571 ] | |
| Fix Version/s | 2.7-M1 [ 16521 ] |
| Fix Version/s | 2.7-M3 [ 16572 ] | |
| Fix Version/s | 2.7-M2 [ 16571 ] |
| Fix Version/s | 2.7-M4 [ 16726 ] | |
| Fix Version/s | 2.7-M3 [ 16572 ] |
| Fix Version/s | 2.7-beta1 [ 16974 ] | |
| Fix Version/s | 2.7-M4 [ 16726 ] |
| Fix Version/s | 2.7-RC1 [ 17076 ] | |
| Fix Version/s | 2.7-beta1 [ 16974 ] |
| Fix Version/s | 2.7.0 [ 17109 ] | |
| Fix Version/s | 2.7-RC1 [ 17076 ] |
| Fix Version/s | 2.7.1 [ 17255 ] | |
| Fix Version/s | 2.7.0 [ 17109 ] |
| Fix Version/s | 2.7.2 [ 17359 ] | |
| Fix Version/s | 2.7.1 [ 17255 ] |
| Fix Version/s | 2.7.3 [ 17442 ] | |
| Fix Version/s | 2.7.2 [ 17359 ] |
| Fix Version/s | 2.7.4 [ 17863 ] | |
| Fix Version/s | 2.7.3 [ 17442 ] |
| Fix Version/s | 2.7.5 [ 18236 ] | |
| Fix Version/s | 2.7.4 [ 17863 ] |
| Fix Version/s | 2.7.6 [ 18554 ] | |
| Fix Version/s | 2.7.5 [ 18236 ] |