Java 类org.apache.catalina.deploy.InjectionTarget 实例源码

项目:tomcat7    文件:StandardContext.java   
private void addInjectionTarget(Injectable resource, Map<String, Map<String, String>> injectionMap) {
    List<InjectionTarget> injectionTargets = resource.getInjectionTargets();
    if (injectionTargets != null && injectionTargets.size() > 0) {
        String jndiName = resource.getName();
        for (InjectionTarget injectionTarget: injectionTargets) {
            String clazz = injectionTarget.getTargetClass();
            Map<String, String> injections = injectionMap.get(clazz);
            if (injections == null) {
                injections = new HashMap<String, String>();
                injectionMap.put(clazz, injections);
            }
            injections.put(injectionTarget.getTargetName(), jndiName);
        }
    }
}
项目:lams    文件:StandardContext.java   
private void addInjectionTarget(Injectable resource, Map<String, Map<String, String>> injectionMap) {
    List<InjectionTarget> injectionTargets = resource.getInjectionTargets();
    if (injectionTargets != null && injectionTargets.size() > 0) {
        String jndiName = resource.getName();
        for (InjectionTarget injectionTarget: injectionTargets) {
            String clazz = injectionTarget.getTargetClass();
            Map<String, String> injections = injectionMap.get(clazz);
            if (injections == null) {
                injections = new HashMap<String, String>();
                injectionMap.put(clazz, injections);
            }
            injections.put(injectionTarget.getTargetName(), jndiName);
        }
    }
}
项目:apache-tomcat-7.0.73-with-comment    文件:StandardContext.java   
private void addInjectionTarget(Injectable resource, Map<String, Map<String, String>> injectionMap) {
    List<InjectionTarget> injectionTargets = resource.getInjectionTargets();
    if (injectionTargets != null && injectionTargets.size() > 0) {
        String jndiName = resource.getName();
        for (InjectionTarget injectionTarget: injectionTargets) {
            String clazz = injectionTarget.getTargetClass();
            Map<String, String> injections = injectionMap.get(clazz);
            if (injections == null) {
                injections = new HashMap<String, String>();
                injectionMap.put(clazz, injections);
            }
            injections.put(injectionTarget.getTargetName(), jndiName);
        }
    }
}
项目:lazycat    文件:StandardContext.java   
private void addInjectionTarget(Injectable resource, Map<String, Map<String, String>> injectionMap) {
    List<InjectionTarget> injectionTargets = resource.getInjectionTargets();
    if (injectionTargets != null && injectionTargets.size() > 0) {
        String jndiName = resource.getName();
        for (InjectionTarget injectionTarget : injectionTargets) {
            String clazz = injectionTarget.getTargetClass();
            Map<String, String> injections = injectionMap.get(clazz);
            if (injections == null) {
                injections = new HashMap<String, String>();
                injectionMap.put(clazz, injections);
            }
            injections.put(injectionTarget.getTargetName(), jndiName);
        }
    }
}
项目:class-guard    文件:StandardContext.java   
private void addInjectionTarget(Injectable resource, Map<String, Map<String, String>> injectionMap) {
    List<InjectionTarget> injectionTargets = resource.getInjectionTargets();
    if (injectionTargets != null && injectionTargets.size() > 0) {
        String jndiName = resource.getName();
        for (InjectionTarget injectionTarget: injectionTargets) {
            String clazz = injectionTarget.getTargetClass();
            Map<String, String> injections = injectionMap.get(clazz);
            if (injections == null) {
                injections = new HashMap<String, String>();
                injectionMap.put(clazz, injections);
            }
            injections.put(injectionTarget.getTargetName(), jndiName);
        }
    }
}
项目:apache-tomcat-7.0.57    文件:StandardContext.java   
private void addInjectionTarget(Injectable resource, Map<String, Map<String, String>> injectionMap) {
    List<InjectionTarget> injectionTargets = resource.getInjectionTargets();
    if (injectionTargets != null && injectionTargets.size() > 0) {
        String jndiName = resource.getName();
        for (InjectionTarget injectionTarget: injectionTargets) {
            String clazz = injectionTarget.getTargetClass();
            Map<String, String> injections = injectionMap.get(clazz);
            if (injections == null) {
                injections = new HashMap<String, String>();
                injectionMap.put(clazz, injections);
            }
            injections.put(injectionTarget.getTargetName(), jndiName);
        }
    }
}
项目:apache-tomcat-7.0.57    文件:StandardContext.java   
private void addInjectionTarget(Injectable resource, Map<String, Map<String, String>> injectionMap) {
    List<InjectionTarget> injectionTargets = resource.getInjectionTargets();
    if (injectionTargets != null && injectionTargets.size() > 0) {
        String jndiName = resource.getName();
        for (InjectionTarget injectionTarget: injectionTargets) {
            String clazz = injectionTarget.getTargetClass();
            Map<String, String> injections = injectionMap.get(clazz);
            if (injections == null) {
                injections = new HashMap<String, String>();
                injectionMap.put(clazz, injections);
            }
            injections.put(injectionTarget.getTargetName(), jndiName);
        }
    }
}
项目:WBSAirback    文件:StandardContext.java   
private void addInjectionTarget(Injectable resource, Map<String, Map<String, String>> injectionMap) {
    List<InjectionTarget> injectionTargets = resource.getInjectionTargets();
    if (injectionTargets != null && injectionTargets.size() > 0) {
        String jndiName = resource.getName();
        for (InjectionTarget injectionTarget: injectionTargets) {
            String clazz = injectionTarget.getTargetClass();
            Map<String, String> injections = injectionMap.get(clazz);
            if (injections == null) {
                injections = new HashMap<String, String>();
                injectionMap.put(clazz, injections);
            }
            injections.put(injectionTarget.getTargetName(), jndiName);
        }
    }
}