/** * Constructs a new ComponentAdapter for the given key and implementation. * * @param componentKey * the search key for this implementation * @param componentImplementation * the concrete implementation * @param parameters * the parameters to use for the initialization * @param allowNonPublicClasses * flag to allow instantiation of non-public classes * @param monitor * the component monitor used by this ComponentAdapter * @throws AssignabilityRegistrationException * if the key is a type and the implementation cannot be * assigned to * @throws NotConcreteRegistrationException * if the implementation is not a concrete class * @throws NullPointerException * if one of the parameters is <code>null</code> */ protected JdonInstantiatingComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters, boolean allowNonPublicClasses, ComponentMonitor monitor) { this(componentKey, componentImplementation, parameters, allowNonPublicClasses, monitor, new DefaultLifecycleStrategy(monitor)); }
/** * Creates a new container with the DefaultComponentAdapterFactory using a * custom ComponentMonitor * * @param monitor the ComponentMonitor to use */ public DefaultPicoContainer(ComponentMonitor monitor) { this(monitor, new DefaultLifecycleStrategy(monitor), null); }
public DefaultComponentAdapterFactory(ComponentMonitor monitor) { super(monitor); this.lifecycleStrategy = new DefaultLifecycleStrategy(monitor); }
public ConstructorInjectionComponentAdapterFactory(boolean allowNonPublicClasses, ComponentMonitor monitor) { this(allowNonPublicClasses, monitor, new DefaultLifecycleStrategy(monitor)); }
/** * Constructs a new ComponentAdapter for the given key and implementation. * @param componentKey the search key for this implementation * @param componentImplementation the concrete implementation * @param parameters the parameters to use for the initialization * @param allowNonPublicClasses flag to allow instantiation of non-public classes * @param monitor the component monitor used by this ComponentAdapter * @throws AssignabilityRegistrationException if the key is a type and the implementation cannot be assigned to * @throws NotConcreteRegistrationException if the implementation is not a concrete class * @throws NullPointerException if one of the parameters is <code>null</code> */ protected InstantiatingComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters, boolean allowNonPublicClasses, ComponentMonitor monitor) { this(componentKey, componentImplementation, parameters, allowNonPublicClasses, monitor, new DefaultLifecycleStrategy(monitor)); }
/** * 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); }
public DefaultComponentAdapterFactory() { this.lifecycleStrategy = new DefaultLifecycleStrategy(new DefaultComponentMonitor()); }
public InstanceComponentAdapter(Object componentKey, Object componentInstance) throws AssignabilityRegistrationException, NotConcreteRegistrationException { this(componentKey, componentInstance, new DefaultLifecycleStrategy(new DefaultComponentMonitor())); }
public SetterInjectionComponentAdapterFactory(boolean allowNonPublicClasses) { this(allowNonPublicClasses, new DefaultLifecycleStrategy(new DefaultComponentMonitor())); }
/** * Creates a new container with a custom ComponentAdapterFactory and a parent container. * <p/> * <em> * Important note about caching: If you intend the components to be cached, you should pass * in a factory that creates {@link CachingComponentAdapter} instances, such as for example * {@link CachingComponentAdapterFactory}. CachingComponentAdapterFactory can delegate to * other ComponentAdapterFactories. * </em> * * @param componentAdapterFactory the factory to use for creation of ComponentAdapters. * @param parent the parent container (used for component dependency lookups). */ public DefaultPicoContainer(ComponentAdapterFactory componentAdapterFactory, PicoContainer parent) { this(componentAdapterFactory, new DefaultLifecycleStrategy(new DefaultComponentMonitor()), parent); }