/** * Creates a new container with a (caching) {@link DefaultComponentAdapterFactory} * and a parent container. * * @param parent the parent container (used for component dependency lookups). */ public DefaultPicoContainer(PicoContainer parent) { this(new DefaultComponentAdapterFactory(), parent); }
public ComponentAdapter createComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters) throws PicoIntrospectionException, AssignabilityRegistrationException, NotConcreteRegistrationException { return new CachingComponentAdapter(new ConstructorInjectionComponentAdapter(componentKey, componentImplementation, parameters, false, currentMonitor(), lifecycleStrategy)); }
/** * Creates a new container with the DefaultComponentAdapterFactory using a * custom ComponentMonitor and lifecycle strategy * * @param monitor the ComponentMonitor to use * @param lifecycleStrategy the lifecycle strategy to use. * @param parent the parent container (used for component dependency lookups). */ public DefaultPicoContainer(ComponentMonitor monitor, LifecycleStrategy lifecycleStrategy, PicoContainer parent) { this(new DefaultComponentAdapterFactory(monitor, lifecycleStrategy), lifecycleStrategy, parent); }
/** * Creates a new container with a (caching) {@link DefaultComponentAdapterFactory} and no parent container. */ public DefaultPicoContainer() { this(new DefaultComponentAdapterFactory(), null); }
public HotSwappingComponentAdapterFactory() { this(new DefaultComponentAdapterFactory()); }
/** * Creates a new container with the DefaultComponentAdapterFactory using a * custom ComponentMonitor * * @param monitor the ComponentMonitor to use * @param parent the parent container (used for component dependency lookups). */ public DefaultPicoContainer(ComponentMonitor monitor, PicoContainer parent) { this(new DefaultComponentAdapterFactory(monitor), parent); lifecycleStrategyForInstanceRegistrations = new DefaultLifecycleStrategy(monitor); }