Examples of rmiURLContextFactory


Examples of com.sun.jndi.url.rmi.rmiURLContextFactory

    }

    private static Context URLToContext(String url, Hashtable env)
            throws NamingException
    {
        rmiURLContextFactory factory = new rmiURLContextFactory();
        Object obj = factory.getObjectInstance(url, null, null, env);

        if (obj instanceof Context) {
            return (Context)obj;
        } else {
            throw (new NotContextException(url));
View Full Code Here

Examples of com.sun.jndi.url.rmi.rmiURLContextFactory

    }

    private static Object URLsToObject(String[] urls, Hashtable env)
            throws NamingException
    {
        rmiURLContextFactory factory = new rmiURLContextFactory();
        return factory.getObjectInstance(urls, null, null, env);
    }
View Full Code Here

Examples of org.apache.harmony.jndi.provider.rmi.rmiURLContextFactory

        if (url == null) {
            url = RegistryContext.RMI_URL_PREFIX;
        }

        Object obj = new rmiURLContextFactory().getObjectInstance(
                url, null, null, environment);

        if (obj instanceof Context) {
            return (Context) obj;
        }
View Full Code Here

Examples of org.apache.harmony.jndi.provider.rmi.rmiURLContextFactory

        if (size < 1) {
            // jndi.78=Reference contains no valid addresses
            throw new ConfigurationException(Messages.getString("jndi.78")); //$NON-NLS-1$
        }
        Object ret = new rmiURLContextFactory().getObjectInstance(
                urls.toArray(new String[size]), name, nameCtx, environment);

        if (ret instanceof RegistryContext) {
            ((RegistryContext) ret).setReference(reference);
        }
View Full Code Here

Examples of org.apache.harmony.jndi.provider.rmi.rmiURLContextFactory

        if (url == null) {
            url = RegistryContext.RMI_URL_PREFIX;
        }

        Object obj = new rmiURLContextFactory().getObjectInstance(url, null,
                null, environment);

        if (obj instanceof Context) {
            return (Context) obj;
        }
View Full Code Here

Examples of org.apache.harmony.jndi.provider.rmi.rmiURLContextFactory

        if (size < 1) {
            // jndi.78=Reference contains no valid addresses
            throw new ConfigurationException(Messages.getString("jndi.78")); //$NON-NLS-1$
        }
        Object ret = new rmiURLContextFactory().getObjectInstance(urls
                .toArray(new String[size]), name, nameCtx, environment);

        if (ret instanceof RegistryContext) {
            ((RegistryContext) ret).setReference(reference);
        }
View Full Code Here

Examples of org.apache.harmony.jndi.provider.rmi.rmiURLContextFactory

        if (url == null) {
            url = RegistryContext.RMI_URL_PREFIX;
        }

        Object obj = new rmiURLContextFactory().getObjectInstance(url, null,
                null, environment);

        if (obj instanceof Context) {
            return (Context) obj;
        }
View Full Code Here

Examples of org.apache.harmony.jndi.provider.rmi.rmiURLContextFactory

        if (size < 1) {
            // jndi.78=Reference contains no valid addresses
            throw new ConfigurationException(Messages.getString("jndi.78")); //$NON-NLS-1$
        }
        Object ret = new rmiURLContextFactory().getObjectInstance(urls
                .toArray(new String[size]), name, nameCtx, environment);

        if (ret instanceof RegistryContext) {
            ((RegistryContext) ret).setReference(reference);
        }
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.