Examples of endpointRemoved()


Examples of org.osgi.service.remoteserviceadmin.EndpointListener.endpointRemoved()

        EasyMock.expect(exReg2.getExportReference()).andReturn(exRef2).anyTimes();
        EasyMock.expect(exRef2.getExportedEndpoint()).andReturn(epd2).anyTimes();
        EasyMock.expect(epd2.getProperties()).andReturn(props2).anyTimes();
       
        // must only be called for the first EndpointDestription !
        epl.endpointRemoved(EasyMock.eq(epd), EasyMock.eq("(objectClass=myClass)"));
        EasyMock.expectLastCall().once();
       
        c.replay();
        EasyMock.replay(epl);
       
View Full Code Here

Examples of org.osgi.service.remoteserviceadmin.EndpointListener.endpointRemoved()

       
        EasyMock.verify(el);

        // Stop the bundle
        EasyMock.reset(el);
        el.endpointRemoved((EndpointDescription) EasyMock.anyObject(), EasyMock.eq("(objectClass=*)"));
        EasyMock.expectLastCall();
        EasyMock.replay(el);
       
        BundleEvent be1 = new BundleEvent(BundleEvent.STOPPED, bundle);
        ld.bundleChanged(be1);
View Full Code Here

Examples of org.osgi.service.remoteserviceadmin.EndpointListener.endpointRemoved()

                for (Filter filter : filters) {
                    if (filter.match(d)) {
                        LOG.info("Listener matched one of the Endpoints !!!! --> calling removed() ...");

                        epl.endpointRemoved(exReg.getExportReference().getExportedEndpoint(), filter
                            .toString());
                    }
                }
            }
        } catch (InvalidSyntaxException e) {
View Full Code Here

Examples of org.osgi.service.remoteserviceadmin.EndpointListener.endpointRemoved()

                            if (f.match(d)) {
                                LOG.fine("MATCHED " + epd + "against " + currentScope);
                                LOG.info("calling EndpointListener endpointRemoved: " + epl + "from bundle "
                                         + sref.getBundle().getSymbolicName() + " for endpoint: " + epd);

                                epl.endpointRemoved(epd, currentScope);
                                break;
                            }
                        } catch (InvalidSyntaxException e) {
                            e.printStackTrace();
                        }
View Full Code Here

Examples of org.osgi.service.remoteserviceadmin.EndpointListener.endpointRemoved()

                            LOG.info("scheduling EndpointListener call for listener ; " + epl
                                     + "  from bundle  " + sref.getBundle().getSymbolicName()
                                     + " based on scope [" + currentScope + "]");

                            if (isRemoval)
                                epl.endpointRemoved(epd, currentScope);
                            else
                                epl.endpointAdded(epd, currentScope);

                            break;
                        }
View Full Code Here

Examples of org.osgi.service.remoteserviceadmin.EndpointListener.endpointRemoved()

                    + matchingFilter);
            if (discovered)
              endpointListener.endpointAdded(endpointDescription,
                  matchingFilter);
            else
              endpointListener.endpointRemoved(
                  endpointDescription, matchingFilter);
          } catch (Exception e) {
            String message = "Exception in EndpointListener listener=" //$NON-NLS-1$
                + endpointListener + " description=" //$NON-NLS-1$
                + endpointDescription + " matchingFilter=" //$NON-NLS-1$
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.