Examples of loadPlugin()


Examples of org.jnode.plugin.PluginRegistry.loadPlugin()

                    System.getProperty("os.version") : plugin.getPluginVersion();
            try {
                PluginManager mgr = InitialNaming.lookup(PluginManager.NAME);
                PluginRegistry reg = mgr.getRegistry();
                if (reg.getPluginDescriptor(id) == null) {
                    reg.loadPlugin(mgr.getLoaderManager(), new PluginReference(id, new Version(ver)), true);
                }
            } catch (Exception ex) {
                System.out.println(ex.getMessage());
                throw new TestRunnerException(
                        "Cannot load plugin '" + plugin.getPluginId() + "/" + ver + "'", ex);
View Full Code Here

Examples of org.jnode.plugin.PluginRegistry.loadPlugin()

    private void reloadPlugin(PluginReference pluginReference) throws PluginException {
        final PluginRegistry reg = mgr.getRegistry();
        final List<PluginReference> refs = reg.unloadPlugin(pluginReference.getId());
        for (PluginReference ref : refs) {
            if (reg.getPluginDescriptor(ref.getId()) == null) {
                reg.loadPlugin(mgr.getLoaderManager(), ref, true); //resolve=true
            }
        }
        if (reg.getPluginDescriptor(pluginReference.getId()) == null) {
            reg.loadPlugin(mgr.getLoaderManager(), pluginReference, true); //resolve=true
        }
View Full Code Here

Examples of org.jnode.plugin.PluginRegistry.loadPlugin()

            if (reg.getPluginDescriptor(ref.getId()) == null) {
                reg.loadPlugin(mgr.getLoaderManager(), ref, true); //resolve=true
            }
        }
        if (reg.getPluginDescriptor(pluginReference.getId()) == null) {
            reg.loadPlugin(mgr.getLoaderManager(), pluginReference, true); //resolve=true
        }
        out.format(fmt_reload, pluginReference.getId(), pluginReference.getVersion());
    }

    private void unloadPlugin(String id) throws PluginException {
View Full Code Here

Examples of org.jnode.plugin.model.PluginRegistryModel.loadPlugin()

            // Load the plugin descriptors
            final PluginRegistryModel piRegistry;
            piRegistry = Factory.createRegistry(piList.getPluginList());

            // Load the memory management plugin
            piRegistry.loadPlugin(memMgrPluginURL, true);

            // Test the set of system plugins
            testPluginPrerequisites(piRegistry);

            // Load all resources
View Full Code Here

Examples of org.rhq.core.clientapi.agent.metadata.PluginMetadataManager.loadPlugin()

        boolean typesUpdated = false;

        PluginMetadataManager metadataManager = getPluginMetadataManager();

        if (newOrUpdated || forceUpdate || !metadataManager.getPluginNames().contains(newPluginName)) {
            Set<ResourceType> rootResourceTypes = metadataManager.loadPlugin(pluginDescriptor);
            if (rootResourceTypes == null) {
                throw new Exception("Failed to load plugin [" + newPluginName + "].");
            }
            if (newOrUpdated || forceUpdate) {
                // Only merge the plugin's ResourceTypes into the DB if the plugin is new or updated or we were forced to
View Full Code Here

Examples of org.rhq.core.clientapi.agent.metadata.PluginMetadataManager.loadPlugin()

        InputStream is = getClass().getResourceAsStream("/META-INF/rhq-plugin.xml");
        PluginDescriptor pd = AgentPluginDescriptorUtil.parsePluginDescriptor(is);
        PluginMetadataManager pmm = new PluginMetadataManager();
        pmm.addTestPlatformType();
        Set<ResourceType> rts = pmm.loadPlugin(pd);
        ResourceType resourceType = rts.iterator().next();
        configuration = resourceType.getPluginConfigurationDefinition().getDefaultTemplate().createConfiguration();

        setConfiguration();
View Full Code Here

Examples of org.rhq.core.clientapi.agent.metadata.PluginMetadataManager.loadPlugin()

         pluginDescriptor = AgentPluginDescriptorUtil.parsePluginDescriptor(descriptorUrl
             .openStream());

         PluginMetadataManager metadataManager = new PluginMetadataManager();
         Set<ResourceType> typeSet = metadataManager.loadPlugin(pluginDescriptor);
         assert typeSet != null : "Got no types!!";
         assert typeSet.size()==5 : "Expected 5 types, but got " + typeSet.size();

         ResourceType testService = findType(typeSet,"testService");
         assert testService.getSubCategory().equals("applications");
View Full Code Here

Examples of org.rhq.enterprise.server.plugin.pc.MasterServerPluginContainer.loadPlugin()

    private void loadServerPluginInMasterContainer(URL pluginUrl) throws Exception {
        ServerPluginServiceMBean serverPluginService = LookupUtil.getServerPluginService();
        MasterServerPluginContainer master = serverPluginService.getMasterPluginContainer();
        if (master != null) {
            master.loadPlugin(pluginUrl, false); // don't enable it - let the caller do that later
        }
        return;
    }

    @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
View Full Code Here

Examples of org.rhq.enterprise.server.plugin.pc.content.metadata.ContentSourcePluginMetadataManager.loadPlugin()

    }

    protected void registerPlugin(String pathToDescriptor) throws Exception {
        ContentPluginDescriptorType descriptor = loadPluginDescriptor(pathToDescriptor);
        ContentSourcePluginMetadataManager mm = new ContentSourcePluginMetadataManager();
        mm.loadPlugin(descriptor);
        metadataManager.registerTypes(mm.getAllContentSourceTypes());
    }

    public ContentPluginDescriptorType loadPluginDescriptor(String descriptorFile) throws Exception {
        URL descriptorUrl = this.getClass().getClassLoader().getResource(descriptorFile);
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.