Examples of endpointAdded()


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

            ret.add(exportRegistration);
            EasyMock.expect(rsa.exportService(EasyMock.same(sref), (Map)EasyMock.anyObject())).andReturn(ret)
                .once();
        }

        epl.endpointAdded((EndpointDescription)EasyMock.anyObject(), (String)EasyMock.anyObject());
        EasyMock.expectLastCall().andAnswer(new IAnswer<Object>() {

            public Object answer() throws Throwable {
                System.out.println("Call made !!!");
                sema.release();
View Full Code Here

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

            }
        }).anyTimes();               
        EasyMock.replay(sr);

        EndpointListener el = EasyMock.createMock(EndpointListener.class);
        el.endpointAdded((EndpointDescription) EasyMock.anyObject(), EasyMock.eq("(objectClass=*)"));
        EasyMock.expectLastCall();
        EasyMock.replay(el);
        ld.registerTracker(sr, el);
       
        // Start the bundle
View Full Code Here

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

                return FrameworkUtil.createFilter((String) EasyMock.getCurrentArguments()[0]);
            }
        }).anyTimes();
        EasyMock.replay(ld.bundleContext);
       
        el.endpointAdded((EndpointDescription) EasyMock.anyObject(),
                EasyMock.eq("(objectClass=org.example.ClassA)"));
        EasyMock.expectLastCall();
        EasyMock.replay(el);
       
        // Add the EndpointListener Service
View Full Code Here

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

        // no need to reset the mock for this...
        props.put(EndpointListener.ENDPOINT_LISTENER_SCOPE, "(|(objectClass=org.example.ClassA)(objectClass=org.example.ClassB))");
       
        EasyMock.reset(el);
        final Set<String> actualEndpoints = new HashSet<String>();
        el.endpointAdded((EndpointDescription) EasyMock.anyObject(),
                EasyMock.eq("(|(objectClass=org.example.ClassA)(objectClass=org.example.ClassB))"));
        EasyMock.expectLastCall().andAnswer(new IAnswer<Object>() {
            public Object answer() throws Throwable {
                EndpointDescription ed = (EndpointDescription) EasyMock.getCurrentArguments()[0];
                actualEndpoints.addAll(ed.getInterfaces());
View Full Code Here

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

                for (Filter filter : filters) {
                    if (filter.match(d)) {
                        LOG.info("Listener mached one of the Endpoints !!!!: " + epl);

                        epl
                            .endpointAdded(exReg.getExportReference().getExportedEndpoint(), filter
                                .toString());
                    }
                }
            }
View Full Code Here

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

                                     + " based on scope [" + currentScope + "]");

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

                            break;
                        }
                    } catch (InvalidSyntaxException e) {
                        LOG.warning("skipping scope [" + currentScope
View Full Code Here

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

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