Class FactoryFinder

    • Field Detail

      • EMPTY_HINTS

        public static final Hints EMPTY_HINTS
        A set of empty hints, which exclude any system hints.
    • Constructor Detail

      • FactoryFinder

        protected FactoryFinder()
        Creates a new factory finder.
    • Method Detail

      • mergeSystemHints

        public static Hints mergeSystemHints​(Hints hints)
        Returns new hints that combine user supplied hints with the defaults hints. If a hint is specified in both user and default hints, then user hints have precedence.

        The returned hints should live only the time needed for invoking FactoryRegistry methods. No long-term reference should be held.

        Parameters:
        hints - The user hints, or null if none.
        Returns:
        New hints (never null).