Examples of PluggableMetaInformation


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

            break;

        case CLASSPATH_ORIGIN:
            if (pluggable instanceof Plugin) {
                final PluginRegistry pluginRegistry = pmi.getPluginRegistry();
                final PluggableMetaInformation metaInformation = pluginRegistry.getMetaInformationFor((Plugin) pluggable);
                if (metaInformation != null && metaInformation.classMeta != null && metaInformation.classMeta.pluginOrigin != null)
                    rval.add(metaInformation.classMeta.pluginOrigin.toString());
            } else {
                this.logger.info("CLASSPATH_ORIGIN cannot be requested for Pluglets at the moment");
            }
View Full Code Here

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

        try {
            this.pluginListLock.lock();

            for (final Plugin plugin : this.pluginRegistry.getAllPlugins()) {
                // Check the meta information for this plugin. We only want active classes
                final PluggableMetaInformation metaInformation = this.pluginRegistry.getMetaInformationFor(plugin);
                if (metaInformation.pluginStatus != PluginStatus.ACTIVE) continue;

                // Check if the plugin can be assigned to the requested class
                if (requestedPlugin.isAssignableFrom(plugin.getClass())) {
                    if (selector.selectPlugin((P) plugin)) return (P) plugin;
View Full Code Here

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

    }

    private void processPluginLoadedAnnotationForOtherPlugins(SpawnResult spawnResult) {

        for (Plugin plugin : this.pluginRegistry.getAllPlugins()) {
            final PluggableMetaInformation pmi = this.pluginRegistry.getMetaInformationFor(plugin);

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

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

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

     * @param type
     */
    public SpawnResult(Pluggable plugin, SpawnType type) {
        this.pluggable = plugin;
        this.spawnType = type;
        this.metaInformation = new PluggableMetaInformation(this.spawnType);
    }
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.