Examples of dependencyUnavailable()


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

    boolean makeUnavailable = makeUnavailable();
        Object[] services = m_services.toArray();
        for (int i = 0; i < services.length; i++) {
            DependencyService ds = (DependencyService) services[i];
            if (makeUnavailable) {
                ds.dependencyUnavailable(this);
                if (!isRequired()) {
                    invokeRemoved(ds, bundle);
                }
            }
            else {
View Full Code Here

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

            }
            else {
                Object[] services = m_services.toArray();
                for (int i = 0; i < services.length; i++) {
                    DependencyService ds = (DependencyService) services[i];
                    ds.dependencyUnavailable(this);
                    if (!isRequired()) {
                        invokeRemoved(ds);
                    }
                }
            }
View Full Code Here

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

          services = m_services.toArray();
        }
            for (int i = 0; i < services.length; i++) {
                DependencyService ds = (DependencyService) services[i];
                if (counter == 0) {
                    ds.dependencyUnavailable(this);
                    if (!isRequired()) {
                        invokeRemoved(ds, resource, resourceProperties);
                    }
                }
                else {
View Full Code Here

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

            // caused the dependency state to change
            if ((oldSettings == null) && (settings != null)) {
                ds.dependencyAvailable(this);
            }
            if ((oldSettings != null) && (settings == null)) {
                ds.dependencyUnavailable(this);
            }
            if ((oldSettings != null) && (settings != null)) {
                ds.dependencyChanged(this);
            }
        }
View Full Code Here

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

        }

        for (int i = 0; i < services.length; i++) {
            DependencyService ds = (DependencyService) services[i];
            if (makeUnavailable) {
                ds.dependencyUnavailable(this);
                // when the dependency is optional or the dependency is instance bound and the component is instantiated (and the dependency is required)
                // then remove is invoked. In other cases the removed has been when the component was unconfigured.
                if (!isRequired() || (ds.isInstantiated() && isInstanceBound())) {
                    invokeRemoved(ds, ref, service);
                }
View Full Code Here

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

        {
            Object[] services = m_services.toArray();
            for (int i = 0; i < services.length; i++)
            {
                DependencyService ds = (DependencyService) services[i];
                ds.dependencyUnavailable(this);
                if (!isRequired())
                {
                    invokeRemoved(ds);
                }
            }
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.