Grégory Joseph ha scritto:

Ok, sorry...
Both classes has no STATIC attributes.
So, *sometimes* factory utils return a new instance, that didn't share attributes with others.

Uh? I don't really get it. Could you please elaborate ?

I don't exactly know the reason, but *sometimes* FactoryUtils.getSingleton() doesn't return the previously stored instance (X.class). So it calls newInstance() and return it (X.class).

If inside X.class there is a

private Collection storedCache;

the new created instance (X.class) contains an empty Collection storedCache;

but if inside X.class there is a

private static Collection storedCache;

the getters returns the right objects.

Need to investigate........

M.


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to