Example usage for org.apache.commons.collections BeanMap putAll

List of usage examples for org.apache.commons.collections BeanMap putAll

Introduction

In this page you can find the example usage for org.apache.commons.collections BeanMap putAll.

Prototype

public void putAll(Map<? extends K, ? extends V> m) 

Source Link

Usage

From source file:org.bpmscript.exec.java.JavaChannel.java

/**
 * Dependency Injection! Wires using a beanmap...
 *//* w w w.  j  ava2 s.  c om*/
@SuppressWarnings("unchecked")
protected void wireDefinition() {
    BeanMap map = new BeanMap(definition);
    IDefinitionConfiguration definitionConfiguration = scriptChannel
            .getDefinitionConfiguration(this.definitionName);
    Map<String, Object> properties = definitionConfiguration.getProperties();
    map.putAll(properties);
    if (map.containsKey("log")) {
        map.put("log", log);
    }
}