AbstractFactorysubclass. We will make this change in a future version. When this change is done,
AllAuthoritiesFactoryshould implement this interface.
public interface FactoryUsingVolatileDependencies extends Factory
#hintssaid that we can't use this field for creating new factories. But instances of this classe are special cases where we can, because this class retains all user-supplied hints.
Extends this class only if you really need to keep all user-supplied hints, because doing so has a cost:
FactoryRegistry is less likely to reuse existing factory instances, because any
value found in
#hints that do not agree with a user-supplied hint will cause
FactoryRegistry to discarts this instance, even if the hint was actually irrelevant to
The user-supplied hints may contain references to big objects (for example a coordinate transform backed by a grid), and some of them may not be relevant to this factory. Retaining all hints will prevents their garbage collection.
Copyright © 1996–2018 Geotools. All rights reserved.