| java.lang.Object org.geotools.factory.AbstractFactory org.geotools.factory.FactoryUsingVolatileDependencies
FactoryUsingVolatileDependencies | public class FactoryUsingVolatileDependencies extends AbstractFactory (Code) | | A factory that can not determines all its dependencies at construction time.
Because this factory may creates new factories at any time, it must keep all
user-supplied hints. The general contract of
FactoryUsingVolatileDependencies.hints said 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
FactoryUsingVolatileDependencies.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 this factory.
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.
version: $Id: FactoryUsingVolatileDependencies.java 22443 2006-10-27 20:47:22Z desruisseaux $ author: Martin Desruisseaux AbstractFactory org.geotools.referencing.factory.AllAuthoritiesFactory |
FactoryUsingVolatileDependencies | public FactoryUsingVolatileDependencies(Hints hints)(Code) | | Constructs a factory with a default priority.
Parameters: hints - The user-supplied hints. |
|
|