Package org.apache.harmony.jndi.provider.rmi

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


        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

        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

        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

        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

        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

Related Classes of org.apache.harmony.jndi.provider.rmi.rmiURLContextFactory

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.