private void invokeAutoConfigDependencies() { for (DependencyContext d : m_dependencies) { if (d.isAutoConfig() && !d.isInstanceBound()) { configureImplementation(d.getAutoConfigType(), d, d.getAutoConfigName()); } } }
private void invokeAutoConfigInstanceBoundDependencies() { for (DependencyContext d : m_dependencies) { if (d.isAutoConfig() && d.isInstanceBound()) { configureImplementation(d.getAutoConfigType(), d, d.getAutoConfigName()); } } }
/** * Updates the component instance(s). * @param dc the dependency context for the updating dependency service * @param event the event holding the updating service (service + properties) * @param update true if dependency service properties are updating, false if not. If false, it means * that a dependency service is being added or removed. (see the "add" flag). * @param add true if the dependency service has been added, false if it has been removed. This flag is * ignored if the "update" flag is true (because the dependency properties are just being updated). */ private void updateInstance(DependencyContext dc, Event event, boolean update, boolean add) { if (dc.isAutoConfig()) { updateImplementation(dc.getAutoConfigType(), dc, dc.getAutoConfigName(), event, update, add); } if (dc.isPropagated() && m_registration != null) { m_registration.setProperties(calculateServiceProperties()); } }