Re: javax.faces.FactoryFinder, using a list of factories

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Thu, 31 Jan 2008 20:53:14 -0800

I think b/c factories declarations can be found in a # of different
places, a List is used to keep track of them all. Then when construting
"the" factory, it needs to use this list to pass in the next least
precedence impl to the one it is currently constructing (and the one
before that needs to get the one before it, etc.). I don't know if I
phrased that correctly. But basically, it should use all the Factories
provided each factory has a single argument constructor to accept the
previous Factory impl.

Looking at the code, I think the walking of this list happens in the
method in FactoryFinder:

    private static Object getImplementationInstance(ClassLoader
classLoader, String factoryName, List implementations)

Maybe looking at this method will help make it make more sense.

Good luck!


Jim Driscoll wrote:
> Hi -
> I'm (still) working on issue 688, and I'm wondering why the
> FactoryFinder needs to keep track of a list of factories for a single
> value? Understanding the code would go faster if I understood the use
> case...
> Thanks for any help.
> Jim
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail: