Package org.apache.geronimo.j2ee.jndi

Examples of org.apache.geronimo.j2ee.jndi.JndiKey


        bind("app", moduleName + beanName, ref, contexts);
        bind("module", beanName, ref, contexts);
    }

    private void bind(String context, String name, Object object,  Map<JndiKey, Map<String, Object>> contexts) throws NamingException {
        JndiKey jndiKey = JndiScope.valueOf(context);
        Map<String, Object> scope = contexts.get(jndiKey);
        if (scope == null) {
            scope = new HashMap<String, Object>();
            contexts.put(jndiKey, scope);
        }
View Full Code Here


        addInjections(key, type, injectionTargets, NamingBuilder.INJECTION_KEY.get(sharedContext));
    }

    protected Object lookupJndiContextMap(Module module, String key) {
        key = normalize(key);
        JndiKey jndiKey = keyFor(key);
        Map<String, Object> scope = module.getJndiScope(jndiKey);
        if (scope == null) return null;
        return scope.get(key);
    }
View Full Code Here

     * @param injectionTargets
     * @param sharedContext
     */
    protected void put(String key, Object value, ReferenceType type, Map<JndiKey, Map<String, Object>> contexts, Set<InjectionTarget> injectionTargets, Map<EARContext.Key, Object> sharedContext) {
        key = normalize(key);
        JndiKey jndiKey = keyFor(key);
        Map<String, Object> scope = contexts.get(jndiKey);
        if (scope == null) {
            scope = new HashMap<String, Object>();
            contexts.put(jndiKey, scope);
        }
View Full Code Here

    public int getPriority() {
        return NORMAL_PRIORITY;
    }

    protected void put(String key, Object value, Map<JndiKey, Map<String, Object>> contexts) {
        JndiKey jndiKey;
        if (key.startsWith("java:")) {
            int pos = key.indexOf("/", 5);
            String type = key.substring(5, pos);
            jndiKey = JndiScope.valueOf(type);
            key = key.substring(5);
View Full Code Here

        }
        scope.put(key, value);
    }
   
    protected Object lookupJndiContextMap(Map<EARContext.Key, Object> sharedContext, String key) {
        JndiKey jndiKey;
        if (key.startsWith("java:")) {
            int pos = key.indexOf("/", 5);
            String type = key.substring(5, pos);
            jndiKey = JndiScope.valueOf(type);
            key = key.substring(5);
View Full Code Here

TOP

Related Classes of org.apache.geronimo.j2ee.jndi.JndiKey

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.