Package org.objectweb.celtix.bus.busimpl

Examples of org.objectweb.celtix.bus.busimpl.ComponentRemovedEvent


            } catch (IOException ioe) {
                // ignore
            }
        }

        bus.sendEvent(new ComponentRemovedEvent(this));
    }
View Full Code Here


            autoQueue.shutdown(processRemainingTasks);
        }

        //sent out remove event.
       
        bus.sendEvent(new ComponentRemovedEvent(this));
      
        synchronized (this) {
            notifyAll();
        }
    }
View Full Code Here

   
    public void shutdown() {
        for (Endpoint ep : endpoints) {
            if (ep.isPublished()) {
                ep.stop();
                bus.sendEvent(new ComponentRemovedEvent((EndpointImpl)ep));
            }
        }
        endpoints.clear();
    }
View Full Code Here

        return definition;
    }

    public void shutdown() {
        if (bus != null) {
            bus.sendEvent(new ComponentRemovedEvent(this));
        }
    }
View Full Code Here

        try {
            this.deactivate();
        } catch (IOException ex) {
            // Ignore for now.
        }
        bus.sendEvent(new ComponentRemovedEvent(this));
    }
View Full Code Here

        try {
            bus.removeListener((BusEventListener)this);
        } catch (BusException ex) {           
            LOG.log(Level.SEVERE, "REMOVE_LISTENER_FAILURE_MSG", ex);           
        }
        bus.sendEvent(new ComponentRemovedEvent(this));
    }
View Full Code Here

        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            // do nothing
        }
        bus.sendEvent(new ComponentRemovedEvent(wqm));
        assertEquals("Instrumented stuff not removed from list", 2, list.size());
        bus.shutdown(true);
        assertEquals("Instrumented stuff not removed from list", 0, list.size());
    }
View Full Code Here

            Thread.sleep(100);
        } catch (InterruptedException e) {
            // do nothing
        }
       
        bus.sendEvent(new ComponentRemovedEvent(wqm));
        bus.sendEvent(new ComponentRemovedEvent(jct));
        bus.sendEvent(new ComponentRemovedEvent(hct));
        assertEquals("Instrumented stuff not removed from list", 2, list.size());
        bus.shutdown(true);
        assertEquals("Instrumented stuff not removed from list", 0, list.size());
    }
View Full Code Here

        // get the ati for more assert
        Instrumentation instr = list.get(2);
        assertEquals("Not exactly the name of AnnotationTestInstrumentation",
                     "AnnotationTestInstrumentation",
                     instr.getInstrumentationName());
        bus.sendEvent(new ComponentRemovedEvent(ati));
        assertEquals("AnnotationTestInstrumented stuff not removed from list", 2, list.size());
        bus.shutdown(true);
        assertEquals("Instrumented stuff not removed from list", 0, list.size());
       
    }
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.bus.busimpl.ComponentRemovedEvent

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.