com.groupbyinc.injector.ThreadLocalInjector Maven / Gradle / Ivy
package com.groupbyinc.injector;
public class ThreadLocalInjector implements StaticInjector {
private ThreadLocal injectedObject = new ThreadLocal();
@Override
public T get() {
return injectedObject.get();
}
@Override
public void set(T injectedObject) {
this.injectedObject.set(injectedObject);
}
}