private void complete() { // Make sure the volatile fields are initialized getInstance(); event(); }
private void complete() { // Make sure the volatile fields are initialized getInstance(); event(); }
private void complete() { // Make sure the volatile fields are initialized getInstance(); event(); }
private void complete() { // Make sure the volatile fields are initialized getInstance(); event(); }
this.deployed = true; container.event().select(MicroservicesInitEvent.class).fire(new MicroservicesInitEvent(this.context, container.getBeanManager(), container)); container.event().select(MicroservicesStartedEvent.class).fire(new MicroservicesStartedEvent(this.context, container.getBeanManager(), container));
_weldContainer.event().select(ContainerInitialized.class).fire(new ContainerInitialized());
_weldContainer.event().select(ContainerInitialized.class).fire(new ContainerInitialized());
@Test public void testConsumers() throws InterruptedException { try (WeldContainer weld = new Weld().disableDiscovery().addExtension(new VertxExtension()).addPackage(false, RegisterConsumersAfterBootstrapTest.class) .initialize()) { Vertx vertx = Vertx.vertx(); try { weld.select(VertxExtension.class).get().registerConsumers(vertx, weld.event()); vertx.eventBus().send(HelloObserver.HELLO_ADDRESS, "hello"); assertEquals("hello", SYNCHRONIZER.poll(Timeouts.DEFAULT_TIMEOUT, TimeUnit.MILLISECONDS)); } finally { vertx.close(); } } }