Created
December 17, 2011 07:17
-
-
Save dhinojosa/1489551 to your computer and use it in GitHub Desktop.
More stuff.
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
@Scope(Non-Singleton) | |
class A { | |
@Inject() | |
public void setB(B b) {...} | |
} | |
@Scope(Non-Singleton) | |
class B { | |
@Inject public void setC(C c) {...} | |
} | |
@Scope(Non-Singleton) | |
class C { | |
@Inject public void setConfigure(Configure configure) {...} | |
} | |
@Scope(Non-Singleton) | |
class Configure {...} | |
@Scope(Singleton) | |
class ConfigureFactory { | |
@Inject public void setConfigure(Configure configure) | |
public Configure createInstance() { | |
return configure; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment