Package org.apache.felix.ipojo.dependency.interceptors

Examples of org.apache.felix.ipojo.dependency.interceptors.ServiceTrackingInterceptor


                      public boolean addingService(ServiceReference reference) {
                          return DependencyProperties.match(reference, m_dependency);
                      }
 
                      public void addedService(ServiceReference reference) {
                          ServiceTrackingInterceptor interceptor = (ServiceTrackingInterceptor) m_trackingInterceptorTracker
                                  .getService(reference);
 
                          if (interceptor != null) {
                              addTrackingInterceptor(interceptor);
                          } else {
View Full Code Here


        try {
            m_dependency.acquireWriteLockIfNotHeld();
            m_filter = filter;

            if (!m_trackingInterceptors.isEmpty()) {
                ServiceTrackingInterceptor interceptor = m_trackingInterceptors.getLast();
                if (interceptor != null && interceptor instanceof FilterBasedServiceTrackingInterceptor) {
                    // Remove it first.
                    m_trackingInterceptors.removeLast();
                }
            }

            if (m_filter != null) {
                // Add the new one.
                ServiceTrackingInterceptor newInterceptor = new FilterBasedServiceTrackingInterceptor(m_filter);
                m_trackingInterceptors.addLast(newInterceptor);
            }

            if (tracker == null) {
                // Tracker closed, no problem
View Full Code Here

                    public boolean addingService(ServiceReference reference) {
                        return DependencyProperties.match(reference, m_dependency);
                    }

                    public void addedService(ServiceReference reference) {
                        ServiceTrackingInterceptor interceptor = (ServiceTrackingInterceptor) m_trackingInterceptorTracker
                                .getService(reference);

                        if (interceptor != null) {
                            addTrackingInterceptor(interceptor);
                        } else {
View Full Code Here

        try {
            m_dependency.acquireWriteLockIfNotHeld();
            m_filter = filter;

            if (!m_trackingInterceptors.isEmpty()) {
                ServiceTrackingInterceptor interceptor = m_trackingInterceptors.getLast();
                if (interceptor != null && interceptor instanceof FilterBasedServiceTrackingInterceptor) {
                    // Remove it first.
                    m_trackingInterceptors.removeLast();
                }
            }

            if (m_filter != null) {
                // Add the new one.
                ServiceTrackingInterceptor newInterceptor = new FilterBasedServiceTrackingInterceptor(m_filter);
                m_trackingInterceptors.addLast(newInterceptor);
            }

            if (tracker == null) {
                // Tracker closed, no problem
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.dependency.interceptors.ServiceTrackingInterceptor

Copyright © 2018 www.massapicom. 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.