All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.injector.ThreadLocalInjector Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy