Package org.jboss.as.naming.deployment

Examples of org.jboss.as.naming.deployment.JndiName


        populate(existing, operation);
        return operation;
    }

    static String getContainerJNDIName(ModelNode container, String name) {
        JndiName jndiName = null ;
        if (container.hasDefined(ModelKeys.JNDI_NAME)) {
            // convert the JNDI name passed by the user
            jndiName = toJndiName(container.get(ModelKeys.JNDI_NAME).asString()) ;
        }
        else {
            // build the name from scratch as java:jboss/infinispan/<container name>
            jndiName = JndiName.of("java:jboss").append(InfinispanExtension.SUBSYSTEM_NAME).append(name) ;
        }
        return jndiName.getAbsoluteName();
    }
View Full Code Here


    public static JndiName parse(String value) {
        return value.startsWith("java:") ? JndiName.of(value) : createJndiName(DEFAULT_JNDI_NAMESPACE, value.startsWith("/") ? value.substring(1) : value);
    }

    public static JndiName createJndiName(String namespace, String... contexts) {
        JndiName name = JndiName.of(namespace);
        for (String context: contexts) {
            name = name.append(context);
        }
        return name;
    }
View Full Code Here

            builder.addDependency(ThreadsServices.executorName(executor), ScheduledExecutorService.class, injector);
        }
    }

    static ContextNames.BindInfo createCacheContainerBinding(String jndiName, String container) {
        JndiName name = (jndiName != null) ? JndiNameFactory.parse(jndiName) : JndiNameFactory.createJndiName(JndiNameFactory.DEFAULT_JNDI_NAMESPACE, InfinispanExtension.SUBSYSTEM_NAME, "container", container);
        return ContextNames.bindInfoFor(name.getAbsoluteName());
    }
View Full Code Here

    public static JndiName toJndiName(String value) {
        return value.startsWith("java:") ? JndiName.of(value) : JndiName.of(DEFAULT_JNDI_NAMESPACE).append(value.startsWith("/") ? value.substring(1) : value);
    }

    public static String createCacheJndiNameOrDefault(String jndiNameString, String containerName, String cacheName) {
        JndiName jndiName = null ;
        if (jndiNameString != null) {
           jndiName = InfinispanJndiName.toJndiName(jndiNameString) ;
        } else {
            jndiName = InfinispanJndiName.defaultCacheJndiName(containerName, cacheName);
        }
        return jndiName.getAbsoluteName();
    }
View Full Code Here

        }
        return jndiName.getAbsoluteName();
    }

    public static String createCacheContainerJndiNameOrDefault(String jndiNameString, String containerName) {
        JndiName jndiName = null ;
        if (jndiNameString != null) {
           jndiName = InfinispanJndiName.toJndiName(jndiNameString) ;
        } else {
            jndiName = InfinispanJndiName.defaultCacheContainerJndiName(containerName);
        }
        return jndiName.getAbsoluteName();
    }
View Full Code Here

    public static JndiName toJndiName(String value) {
        return value.startsWith("java:") ? JndiName.of(value) : JndiName.of(DEFAULT_JNDI_NAMESPACE).append(value.startsWith("/") ? value.substring(1) : value);
    }

    public static String createCacheJndiName(String jndiNameString, String containerName, String cacheName) {
        JndiName jndiName = (jndiNameString != null) ? InfinispanJndiName.toJndiName(jndiNameString) : InfinispanJndiName.defaultCacheJndiName(containerName, cacheName);
        return jndiName.getAbsoluteName();
    }
View Full Code Here

        JndiName jndiName = (jndiNameString != null) ? InfinispanJndiName.toJndiName(jndiNameString) : InfinispanJndiName.defaultCacheJndiName(containerName, cacheName);
        return jndiName.getAbsoluteName();
    }

    public static String createCacheContainerJndiName(String jndiNameString, String containerName) {
        JndiName jndiName = (jndiNameString != null) ? InfinispanJndiName.toJndiName(jndiNameString) : InfinispanJndiName.defaultCacheContainerJndiName(containerName);
        return jndiName.getAbsoluteName();
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.naming.deployment.JndiName

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.