Package org.jnode.emu.naming

Examples of org.jnode.emu.naming.BasicNameSpace


        if (root == null) {
            root = new File("").getAbsoluteFile();
            System.err.println("Assuming that the JNode root is '" + root + "'");
        }
        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();
View Full Code Here


        InstantiationException, IllegalAccessException, Exception {
        super.setUp();
        if (!setup && !OsUtils.isJNode()) {
            // We are not running in JNode, emulate a JNode environment.

            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");
View Full Code Here

        }
    }

    protected void initNaming() throws PluginException {
        if (OsType.OTHER_OS.isCurrentOS()) {
            NameSpace namespace = new BasicNameSpace();
            InitialNaming.setNameSpace(namespace);
            populateNameSpace(namespace);

            //StubDeviceManager.INSTANCE.start();
        }
View Full Code Here

* @author Levente S\u00e1ntha
*/
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

    public static final void initJNodeCore() {
        if (!coreInitialized && !OsUtils.isJNode()) {

            try {
                // ShellEmu.main(new String[0]);
                NameSpace namespace = new BasicNameSpace();
                InitialNaming.setNameSpace(namespace);
                InitialNaming.bind(DeviceManager.NAME, StubDeviceManager.INSTANCE);
               
                // Build a plugin descriptor that is sufficient for the FileSystemPlugin to
                // configure file system types for testing.
View Full Code Here

                                                       VmType<?>[] bootClasses, Object clInitCaller)
        throws ClassNotFoundException;

    public final void execute() throws BuildException {
        try {
            InitialNaming.setNameSpace(new BasicNameSpace());
            BootLogInstance.set(new BootLog() {
                @Override
                public void warn(String msg) {
                    System.out.println(msg);
                }
View Full Code Here

    public static void initEnv() throws NamingException {
        if (initialized) {
            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());
View Full Code Here

TOP

Related Classes of org.jnode.emu.naming.BasicNameSpace

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.