Package net.xeoh.plugins.base.impl.registry

Examples of net.xeoh.plugins.base.impl.registry.PluginMetaInformation


            }
            break;

        case CLASSPATH_ORIGIN:
            final PluginRegistry pluginRegistry = pmi.getPluginRegistry();
            final PluginMetaInformation metaInformation = pluginRegistry.getMetaInformationFor(plugin);
            if (metaInformation != null && metaInformation.classMeta != null && metaInformation.classMeta.pluginOrigin != null)
                    rval.add(metaInformation.classMeta.pluginOrigin.toString());
            break;

        default:
View Full Code Here


        for (final Plugin plugin : this.pluginRegistry.getAllPlugins()) {
            if (this.diagnosis != null)
                this.diagnosis.channel(PluginManagerTracer.class).status("get/considering", new OptionInfo("plugin", plugin.toString()));

            // Check the meta information for this plugin. We only want active classes
            final PluginMetaInformation metaInformation = this.pluginRegistry.getMetaInformationFor(plugin);

            // Plugins not active are not considered
            if (metaInformation.pluginStatus != PluginStatus.ACTIVE) continue;

            // Check if the plugin can be assigned to the requested class
View Full Code Here

     *
     * @param plugin
     */
    public SpawnResult(Plugin plugin) {
        this.plugin = plugin;
        this.metaInformation = new PluginMetaInformation();
    }
View Full Code Here

     * @param newPlugin Newly creatd pluign
     */
    public void processOtherPluginLoadedAnnotation(Plugin newPlugin) {

        for (Plugin plugin : this.pluginManager.getPluginRegistry().getAllPlugins()) {
            final PluginMetaInformation pmi = this.pluginManager.getPluginRegistry().getMetaInformationFor(plugin);

            for (PluginLoadedInformation pli : pmi.pluginLoadedInformation) {
                final Collection<? extends Plugin> plins = new PluginManagerUtil(this.pluginManager).getPlugins(pli.baseType);

                // Check if the new plugin is returned upon request
View Full Code Here

        for (final Plugin plugin : this.pluginRegistry.getAllPlugins()) {
            if (this.diagnosis != null)
                this.diagnosis.channel(PluginManagerTracer.class).status("get/considering", new OptionInfo("plugin", plugin.toString()));

            // Check the meta information for this plugin. We only want active classes
            final PluginMetaInformation metaInformation = this.pluginRegistry.getMetaInformationFor(plugin);

            // Plugins not active are not considered
            if (metaInformation.pluginStatus != PluginStatus.ACTIVE) continue;

            // Check if the plugin can be assigned to the requested class
View Full Code Here

TOP

Related Classes of net.xeoh.plugins.base.impl.registry.PluginMetaInformation

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.