|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
AbstractFactory
subclass. We will make this change in a future version. When this change is
done, AllAuthoritiesFactory
should
implement this interface.
public interface FactoryUsingVolatileDependencies
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 #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 #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.
modules/library/metadata (gt-metadata.jar)
Method Summary |
---|
Methods inherited from interface Factory |
---|
getImplementationHints |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |