Package org.objectweb.celtix.bus.busimpl

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


        configuration = createConfiguration(portConfiguration);
        policy = getClientPolicy(configuration);
        authPolicy = getAuthPolicy("authorization", configuration);
        proxyAuthPolicy = getAuthPolicy("proxyAuthorization", configuration);
        sslClientPolicy = getSSLClientPolicy(configuration);
        bus.sendEvent(new ComponentCreatedEvent(this));

    }
View Full Code Here


     * @see org.objectweb.celtix.workqueue.WorkQueueManager#getAutomaticWorkQueue()
     */
    public synchronized AutomaticWorkQueue getAutomaticWorkQueue() {
        if (autoQueue == null) {
            autoQueue = createAutomaticWorkQueue();
            bus.sendEvent(new ComponentCreatedEvent(this));
        }
        return autoQueue;
    }
View Full Code Here

        if (endpoints.contains(epl)) {
            LOG.warning("ENDPOINT_ALREADY_REGISTERED_MSG");
        } else {
            endpoints.add(epl);
            if (bus != null) {              
                bus.sendEvent(new ComponentCreatedEvent(epl));
            }
        }
    }
View Full Code Here

            throw new BusException(e);
        }
        definitionsMap = new WeakHashMap<Object, Definition>();
        // null check for the unit test
        if (bus != null) {
            bus.sendEvent(new ComponentCreatedEvent(this));
        }
    }
View Full Code Here

        throws WSDLException {
        super(b, address, true);       
        serverBehaviourPolicy = getServerPolicy(configuration);
        counters = new TransportServerCounters("JMSServerTranpsort");
        entry("JMSServerTransport Constructor");
        bus.sendEvent(new ComponentCreatedEvent(this));
    }
View Full Code Here

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

   
    // try to get WorkQueue information
    public void testWorkQueueInstrumentation() throws BusException {
        //im.getAllInstrumentation();
        WorkQueueManagerImpl wqm = new WorkQueueManagerImpl(bus);
        bus.sendEvent(new ComponentCreatedEvent(wqm));       
        bus.sendEvent(new ComponentCreatedEvent(wqm));
        //NOTE: now the bus WorkQueueManager is lazy load , if WorkQueueManager
        //create with bus , this test could be failed.
        List<Instrumentation> list = im.getAllInstrumentation();  
        //NOTE: change for the BindingManager and TransportFactoryManager instrumentation
        // create with the bus.
View Full Code Here

   

    public void testMoreInstrumentation() throws BusException {
        //im.getAllInstrumentation();
        WorkQueueManagerImpl wqm = new WorkQueueManagerImpl(bus);
        bus.sendEvent(new ComponentCreatedEvent(wqm));       
       
        JMSClientTransport jct =
            EasyMock.createMock(JMSClientTransport.class);
        bus.sendEvent(new ComponentCreatedEvent(jct));
       
        HTTPClientTransport hct =
            EasyMock.createMock(HTTPClientTransport.class);
        bus.sendEvent(new ComponentCreatedEvent(hct));
       
        // TODO should test for the im getInstrumentation
        List<Instrumentation> list = im.getAllInstrumentation();       
        assertEquals("Too many instrumented items", 5, list.size());
        // sleep for the MBServer connector thread startup
View Full Code Here

        assertEquals("Instrumented stuff not removed from list", 0, list.size());
    }
   
    public void testCustemerInstrumentationByEvent() throws BusException {
        AnnotationTestInstrumentation ati = new AnnotationTestInstrumentation();
        bus.sendEvent(new ComponentCreatedEvent(ati));
       
        List<Instrumentation> list = im.getAllInstrumentation();
        assertEquals("Not exactly the number of instrumented item", 3, list.size());
       
        // get the ati for more assert
View Full Code Here

TOP

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

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.