Last active
August 29, 2015 14:10
-
-
Save eclecticlogic/f384dcfd967a8537a890 to your computer and use it in GitHub Desktop.
Spring runtime dependency injector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.inject.Inject; | |
import org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor; | |
public class DependencyInjector { | |
@Inject | |
private AutowiredAnnotationBeanPostProcessor aaProcessor; | |
@Override | |
public <T> T bind(T instance) { | |
aaProcessor.processInjection(instance); | |
return instance; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment