org.nutz.lang.inject.InjectToMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz Show documentation
Show all versions of nutz Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
package org.nutz.lang.inject;
import java.util.Map;
public class InjectToMap implements Injecting {
private String key;
public InjectToMap(String key) {
this.key = key;
}
@SuppressWarnings("unchecked")
public void inject(Object obj, Object value) {
((Map) obj).put(key, value);
}
}