Package com.hellblazer.slp

Examples of com.hellblazer.slp.ServiceListener


        executor.execute(new Runnable() {
            @Override
            public void run() {
                for (ListenerRegistration reg : listeners) {
                    if (reg.query.match(reference)) {
                        final ServiceListener listener = reg.listener;
                        executor.execute(new Runnable() {
                            @Override
                            public void run() {
                                try {
                                    listener.serviceChanged(new ServiceEvent(
                                                                             type,
                                                                             reference));
                                } catch (Throwable e) {
                                    log.error(String.format("Error when notifying listener %s on reference %s type %s",
                                                            listener,
View Full Code Here


*/
public class LocalScopeTest {

    @Test
    public void testServiceListener() throws Exception {
        ServiceListener serviceListener = mock(ServiceListener.class);
        Executor executor = new Executor() {
            @Override
            public void execute(Runnable command) {
                command.run();
            }
View Full Code Here

TOP

Related Classes of com.hellblazer.slp.ServiceListener

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.