/** Caches the specified factory under the specified category. */ private <T> void cache(final Class<T> category, final T factory) { getCachedFactories(category).add(new WeakReference<T>(factory)); }
/** Caches the specified factory under the specified category. */ private <T> void cache(final Class<T> category, final T factory) { getCachedFactories(category).add(new WeakReference<T>(factory)); }