Package org.tomighty.bus.messages.plugin

Examples of org.tomighty.bus.messages.plugin.PluginLoaded


            Plugin plugin = pluginLoader.load(pluginPack);

            loadedPlugins.add(plugin);
            log.info("Loaded plugin {}", plugin.getName());

            bus.publish(new PluginLoaded(plugin));
        }
    }
View Full Code Here


        List<Object> publishedMessages = bus.getPublishedMessages();

        assertEquals("Two messages were published, one for each loaded plugin", 2, publishedMessages.size());

        PluginLoaded pluginLoaded1 = (PluginLoaded) publishedMessages.get(0);
        PluginLoaded pluginLoaded2 = (PluginLoaded) publishedMessages.get(1);
        assertSame("First message contains plugin #1", plugin1, pluginLoaded1.getPlugin());
        assertSame("Second message contains plugin #2", plugin2, pluginLoaded2.getPlugin());
    }
View Full Code Here

TOP

Related Classes of org.tomighty.bus.messages.plugin.PluginLoaded

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.