public Object getComponentInstance(final PicoContainer container, final Type into) throws PicoCompositionException { if (provideMethod == AT_INJECT_GET) { try { return provideMethod.invoke(provider); } catch (Exception e) { throw new PicoCompositionException("Error invoking provider " + provider + " to inject into " + into, e); } // return provider; } else { return new Reinjector(container).reinject(key, provider.getClass(), provider, properties, new MethodInjection(provideMethod)); } }
public Object getComponentInstance(final PicoContainer container, final Type into) throws PicoCompositionException { if (provideMethod == AT_INJECT_GET) { try { return provideMethod.invoke(provider); } catch (Exception e) { throw new PicoCompositionException("Error invoking provider " + provider + " to inject into " + into, e); } // return provider; } else { return new Reinjector(container).reinject(key, provider.getClass(), provider, properties, new MethodInjection(provideMethod)); } }