return this;
}
public MutablePicoContainer build() {
DefaultPicoContainer tempContainer = new TransientPicoContainer();
tempContainer.addComponent(PicoContainer.class, parentContainer);
addContainerComponents(tempContainer);
ComponentFactory lastCaf = injectionType;
while (!componentFactories.empty()) {
lastCaf = buildComponentFactory(tempContainer, lastCaf);
}
tempContainer.addComponent(ComponentFactory.class, lastCaf);
buildComponentMonitor(tempContainer);
tempContainer.addComponent(LifecycleStrategy.class, lifecycleStrategyClass);
tempContainer.addComponent("mpc", mpcClass);
MutablePicoContainer newContainer = (MutablePicoContainer) tempContainer.getComponent("mpc");
addChildToParent(newContainer);
return newContainer;
}