Examples of PluginLoaded


Examples of net.xeoh.plugins.base.annotations.events.PluginLoaded

    private void obtainPluginLoadedMethods(SpawnResult spawnResult, Method[] methods) {
        for (final Method method : methods) {
            // New: also turn on extended accessibility, so elements don't have to be
            // public anymore.
            method.setAccessible(true);
            final PluginLoaded annotation = method.getAnnotation(PluginLoaded.class);
            if (annotation != null) {
                final PluginLoadedInformation pli = new PluginLoadedInformation();
                final Class<?>[] parameterTypes = method.getParameterTypes();

                if (parameterTypes.length != 1) {
View Full Code Here

Examples of net.xeoh.plugins.base.annotations.events.PluginLoaded

     */
    @SuppressWarnings("unchecked")
    private void obtainPluginLoadedMethods(SpawnResult spawnResult, Method[] methods) {
        for (final Method method : methods) {

            final PluginLoaded annotation = method.getAnnotation(PluginLoaded.class);
            if (annotation != null) {
                final PluginLoadedInformation pli = new PluginLoadedInformation();
                final Class<?>[] parameterTypes = method.getParameterTypes();

                if (parameterTypes.length != 1) {
View Full Code Here

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

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

        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
Copyright © 2018 www.massapi.com. 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.