protected JdonInstantiatingComponentAdapter(Object componentKey, Class componentImplementation, Parameter[] parameters, boolean allowNonPublicClasses) { this(componentKey, componentImplementation, parameters, allowNonPublicClasses, new DelegatingComponentMonitor()); }
/** * Creates a DelegatingComponentMonitor with a given delegate * @param delegate the ComponentMonitor to which this monitor delegates */ public DelegatingComponentMonitor(ComponentMonitor delegate) { checkMonitor(delegate); this.delegate = delegate; }
/** * If the delegate supports a {@link ComponentMonitorStrategy monitor strategy}, * this is used to changed the monitor while keeping the same delegate. * Else the delegate is replaced by the new monitor. * {@inheritDoc} */ public void changeMonitor(ComponentMonitor monitor) { checkMonitor(monitor); if ( delegate instanceof ComponentMonitorStrategy ){ ((ComponentMonitorStrategy)delegate).changeMonitor(monitor); } else { delegate = monitor; } }
/** * Constructs a MonitoringComponentAdapter with a {@link DelegatingComponentMonitor default monitor}. */ protected MonitoringComponentAdapter() { this(new DelegatingComponentMonitor()); }
/** * Constructs a MonitoringComponentAdapterFactory with a {@link DelegatingComponentMonitor default monitor}. */ protected MonitoringComponentAdapterFactory() { this(new DelegatingComponentMonitor()); }
/** * Constructs a new ComponentAdapter for the given key and implementation. * @param componentKey the search key for this implementation * @param componentImplementation the concrete implementation * @throws AssignabilityRegistrationException if the key is a type and the implementation cannot be assigned to. */ protected AbstractComponentAdapter(Object componentKey, Class componentImplementation) throws AssignabilityRegistrationException { this(componentKey, componentImplementation, new DelegatingComponentMonitor()); }
/** * 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. * @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) { this(componentKey, componentImplementation, parameters, allowNonPublicClasses, new DelegatingComponentMonitor()); }
public ConstructorInjectionComponentAdapterFactory(boolean allowNonPublicClasses) { this(allowNonPublicClasses, new DelegatingComponentMonitor()); }
public ConstructorInjectionComponentAdapterFactory(boolean allowNonPublicClasses, LifecycleStrategy lifecycleStrategy) { this(allowNonPublicClasses, new DelegatingComponentMonitor(), lifecycleStrategy); }