Package org.jnode.plugin

Examples of org.jnode.plugin.PluginException


            fileSystemService.getApi().mkDir(MOUNT_ROOT);

            devMan = InitialNaming.lookup(DeviceManager.NAME);
            devMan.addListener(this);
        } catch (NameNotFoundException ex) {
            throw new PluginException("Cannot find DeviceManager", ex);
        } catch (IOException ex) {
            throw new PluginException("Cannot create devices directory");
        }

    }
View Full Code Here


            VMIOUtils.setAPI(getApi(), this);
            mounter = new FileSystemMounter(this);
            InitialNaming.bind(NAME, this);
            mounter.start();
        } catch (NamingException ex) {
            throw new PluginException(ex);
        } catch (DeviceAlreadyRegisteredException ex) {
            throw new PluginException(ex);
        } catch (DriverException ex) {
            throw new PluginException(ex);
        }
    }
View Full Code Here

    public void start() throws PluginException {
        providersEP.addListener(this);
        try {
            InitialNaming.bind(NAME, this);
        } catch (NamingException ex) {
            throw new PluginException(ex);
        }
        updateFontProviders();
    }
View Full Code Here

    @Override
    protected void startPlugin() throws PluginException {
        try {
            InitialNaming.bind(NAME, this);
        } catch (NamingException ex) {
            throw new PluginException(ex);
        }
    }
View Full Code Here

    protected void startPlugin() throws PluginException {
        try {
            ShellManager mgr = InitialNaming.lookup(ShellManager.NAME);
            mgr.registerInterpreterFactory(FACTORY);
        } catch (NamingException ex) {
            throw new PluginException("Cannot find the shell manager", ex);
        }
    }
View Full Code Here

    protected void stopPlugin() throws PluginException {
        try {
            ShellManager mgr = InitialNaming.lookup(ShellManager.NAME);
            mgr.unregisterInterpreterFactory(FACTORY);
        } catch (NamingException ex) {
            throw new PluginException("Cannot find the shell manager", ex);
        }
    }
View Full Code Here

                new DefaultSyntaxManager(getDescriptor().getExtensionPoint("syntaxes"));
            InitialNaming.bind(AliasManager.NAME, aliasMgr);
            InitialNaming.bind(ShellManager.NAME, shellMgr);
            InitialNaming.bind(SyntaxManager.NAME, syntaxMgr);
        } catch (NamingException ex) {
            throw new PluginException("Cannot bind shell component", ex);
        }
    }
View Full Code Here

            dm.stop(dev);
            dm.start(dev);

            log.info("/jnode ready.");
        } catch (NameNotFoundException e) {
            throw new PluginException(e);
        } catch (DriverException e) {
            throw new PluginException(e);
        } catch (DeviceAlreadyRegisteredException e) {
            throw new PluginException(e);
        } catch (FileSystemException e) {
            throw new PluginException(e);
        } catch (DeviceNotFoundException ex) {
            throw new PluginException(ex);
        }
    }
View Full Code Here

    protected void startPlugin() throws PluginException {
        try {
            final HelpFactory help = new DefaultHelpFactory();
            InitialNaming.bind(HelpFactory.NAME, help);
        } catch (NamingException ex) {
            throw new PluginException("Cannot bind system help", ex);
        }
    }
View Full Code Here

                }
            });
            InitialNaming.bind(NAME, this);
            VmSystem.setRtcService(rtc);
        } catch (ResourceNotFreeException ex) {
            throw new PluginException("Cannot claim IO ports", ex);
        } catch (NamingException ex) {
            throw new PluginException("Cannot register service", ex);
        } catch (Exception ex) {
            throw new PluginException("Unknown exception", ex);
        }
    }
View Full Code Here

TOP

Related Classes of org.jnode.plugin.PluginException

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.