Package org.apache.felix.dm

Examples of org.apache.felix.dm.DependencyService.propagate()


                    if (m_debug) {
                        m_logger.log(Logger.LOG_DEBUG, "[" + m_debugKey + "] invoke added: " + ref);
                    }
                    if (invokeAdded(ds, ref, service)) {
                  // Propagate (if needed) all "setPropagate" dependencies to the dependency service.
                  ds.propagate(this);
                    }
                }
            }
        }
    }
View Full Code Here


            if (ds.isInstantiated()) {
                if (invokeChanged(ds, ref, service)) {
                    // The "change" or "swap" callback has been invoked (if not it means that the modified service
                    // is for a lower ranked aspect to which we are not interested in).
                    // Now, propagate (if needed) changed properties to dependency service properties.
                    ds.propagate(this);
                }
            }
        }
    }
View Full Code Here

                // if the removed service is the highest ranked service. Note that if the cb is not called, we don't
                // propagate the remaining dependency properties.
                if (invokeRemoved(ds, ref, service)) {
                    // Finally, since we have lost one dependency, we have to possibly propagate the highest ranked
                    // dependency available.
                    ds.propagate(this);
                }
            }
        }
        // unget what we got in addingService (see ServiceTracker 701.4.1)
        m_context.ungetService(ref);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.