Package org.jnode.emu.plugin.model

Examples of org.jnode.emu.plugin.model.DummyExtensionPoint


    }

    private FileSystemService createFSService() {
        DummyPluginDescriptor desc = new DummyPluginDescriptor(true);
        DummyExtensionPoint ep = new DummyExtensionPoint("types", "org.jnode.fs.types", "types");
        desc.addExtensionPoint(ep);
        DummyExtension extension = new DummyExtension();
        DummyConfigurationElement element = new DummyConfigurationElement();
        element.addAttribute("class", HfsPlusFileSystemType.class.getName());
        extension.addElement(element);
        ep.addExtension(extension);
        return new FileSystemPlugin(desc);
    }
View Full Code Here


        this.root = root;
        InitialNaming.setNameSpace(new BasicNameSpace());

        try {
            InitialNaming.bind(DeviceManager.NAME, DeviceManager.INSTANCE);
            aliasMgr = new DefaultAliasManager(new DummyExtensionPoint()).createAliasManager();
            syntaxMgr = new DefaultSyntaxManager(new DummyExtensionPoint()).createSyntaxManager();
            for (String pluginName : pluginNames) {
                configurePlugin(pluginName);
            }
            System.setProperty("jnode.invoker", "thread");
            System.setProperty("jnode.interpreter", "redirecting");
View Full Code Here

     * @param fileSystemTypeClassName the class name of the file system type.
     * @return the file system service.
     */
    public static FileSystemService createFSService(String fileSystemTypeClassName) {
        DummyPluginDescriptor desc = new DummyPluginDescriptor(true);
        DummyExtensionPoint ep = new DummyExtensionPoint("types", "org.jnode.fs.types", "types");
        desc.addExtensionPoint(ep);
        DummyExtension extension = new DummyExtension();
        DummyConfigurationElement element = new DummyConfigurationElement();
        element.addAttribute("class", fileSystemTypeClassName);
        extension.addElement(element);
        ep.addExtension(extension);
        return new FileSystemPlugin(desc);
    }
View Full Code Here

            InitialNaming.setNameSpace(new BasicNameSpace());

            // Build a plugin descriptor that is sufficient for the FileSystemPlugin to
            // configure file system types for testing.
            DummyPluginDescriptor desc = new DummyPluginDescriptor(true);
            DummyExtensionPoint ep = new DummyExtensionPoint("types", "org.jnode.fs.types", "types");
            desc.addExtensionPoint(ep);
            for (FSType fsType : FSType.values()) {
                DummyExtension extension = new DummyExtension();
                DummyConfigurationElement element = new DummyConfigurationElement();
                element.addAttribute("class", fsType.getFsTypeClass().getName());
                extension.addElement(element);
                ep.addExtension(extension);
            }

            FileSystemService fss = new FileSystemPlugin(desc);
            InitialNaming.bind(FileSystemService.class, fss);
        }
View Full Code Here

public class Emu {
    protected static void initEnv() throws NamingException {
        if (true) {
            InitialNaming.setNameSpace(new BasicNameSpace());
            InitialNaming.bind(DeviceManager.NAME, DeviceManager.INSTANCE);
            final AliasManager aliasMgr = new DefaultAliasManager(new DummyExtensionPoint());
            final ShellManager shellMgr = new DefaultShellManager();
            InitialNaming.bind(AliasManager.NAME, aliasMgr);
            InitialNaming.bind(ShellManager.NAME, shellMgr);
        }
    }
View Full Code Here

                InitialNaming.bind(DeviceManager.NAME, StubDeviceManager.INSTANCE);
               
                // Build a plugin descriptor that is sufficient for the FileSystemPlugin to
                // configure file system types for testing.
                DummyPluginDescriptor desc = new DummyPluginDescriptor(true);
                DummyExtensionPoint ep = new DummyExtensionPoint("types", "org.jnode.fs.types", "types");
                desc.addExtensionPoint(ep);
                for (FSType fsType : FSType.values()) {
                    DummyExtension extension = new DummyExtension();
                    DummyConfigurationElement element = new DummyConfigurationElement();
                    element.addAttribute("class", fsType.getFsTypeClass().getName());
                    extension.addElement(element);
                    ep.addExtension(extension);
                }
               
                FileSystemService fss = new FileSystemPlugin(desc);
                InitialNaming.bind(FileSystemService.class, fss);
               
View Full Code Here

            return;
        }
        InitialNaming.setNameSpace(new BasicNameSpace());
        InitialNaming.bind(DeviceManager.NAME, DeviceManager.INSTANCE);
        AliasManager alias_mgr =
            new DefaultAliasManager(new DummyExtensionPoint()).createAliasManager();
        InitialNaming.bind(AliasManager.NAME, alias_mgr);
        InitialNaming.bind(ShellManager.NAME, new DefaultShellManager());
        InitialNaming.bind(HelpFactory.NAME, new DefaultHelpFactory());

        BasicConfigurator.configure();
View Full Code Here

TOP

Related Classes of org.jnode.emu.plugin.model.DummyExtensionPoint

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.