return new CachingPicoContainer(parent, lifecycleManager);
}
public void testUsageOfADifferentComponentAdapterFactory() {
// Jira bug 212 - logical opposite
MutablePicoContainer parent = new DefaultPicoContainer();
CachingPicoContainer pico = new CachingPicoContainer(new ConstructorInjectionComponentAdapterFactory(), parent);
pico.registerComponentImplementation(List.class, ArrayList.class);
List list1 = (List) pico.getComponentInstanceOfType(List.class);
List list2 = (List) pico.getComponentInstanceOfType(List.class);
assertNotNull(list1);