Package org.jnode.plugin

Examples of org.jnode.plugin.PluginManager


    /**
     * @see java.net.URLConnection#connect()
     */
    public void connect() throws IOException {
        try {
            final PluginManager pluginMgr = InitialNaming.lookup(PluginManager.NAME);
            final PluginDescriptor descr = pluginMgr.getRegistry().getPluginDescriptor(pluginId);
            if (descr == null) {
                throw new IOException("Plugin " + pluginId + " not found");
            }
            this.jarFile = ((PluginDescriptorModel) descr).getJarFile();
            if (this.jarFile == null) {
View Full Code Here


        // Create a new ThreadGroup
        this.threadGroup = new ThreadGroup(StaticData.getRoot().threadGroup, mainClass);

        // Find plugin manager
        PluginManager piManager;
        try {
            piManager = InitialNaming.lookup(PluginManager.NAME);
        } catch (NameNotFoundException ex) {
            throw new IsolateStartupException("Cannot find PluginManager", ex);
        }
View Full Code Here

            sm.checkPermission(new JNodePermission("halt"));
        }
        exitCode = (reset ? 1 : 0);
        inShutdown = true;
        try {
            final PluginManager pm = InitialNaming.lookup(PluginManager.NAME);
            pm.stopPlugins();
        } catch (NameNotFoundException ex) {
            System.err.println("Cannot find ServiceManager");
        }
    }
View Full Code Here

            BootLogInstance.get().info("Loading initjar plugins");
            final InitJarProcessor proc = new InitJarProcessor(VmSystem.getInitJar());
            List<PluginDescriptor> descriptors = proc.loadPlugins(pluginRegistry);

            BootLogInstance.get().info("Starting PluginManager");
            final PluginManager piMgr = new DefaultPluginManager(pluginRegistry);
            piMgr.startSystemPlugins(descriptors);

            final ClassLoader loader = pluginRegistry.getPluginsClassLoader();
            final String mainClassName = proc.getMainClassName();
            final Class<?> mainClass;
            if (mainClassName != null) {
View Full Code Here

TOP

Related Classes of org.jnode.plugin.PluginManager

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.