public List getComponentInstances() { return delegate.getComponentInstances(); }
/** * Create a {@link Multicasting} proxy for the components of a {@link PicoContainer}. * * @param pico the container * @param callInInstantiationOrder <code>true</code> if the components will be called in instantiation order * @param proxyFactory the ProxyFactory to use * @return the Multicasting proxy * @since 1.2 */ public static Object object(PicoContainer pico, boolean callInInstantiationOrder, ProxyFactory proxyFactory) { List copy = new ArrayList(pico.getComponentInstances()); if (!callInInstantiationOrder) { // reverse the list Collections.reverse(copy); } Object[] targets = copy.toArray(); return Multicasting.object(proxyFactory, targets); } }