Created
July 15, 2015 12:47
-
-
Save Kotlin-Native/433a430db9d3fd7cd15f to your computer and use it in GitHub Desktop.
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
| @RequestScoped | |
| public class MyCdiBean { | |
| private boolean flag = true; | |
| @Inject | |
| private MyService service; | |
| public void doSomething() { | |
| if (!flag) { | |
| service.callMethod(); | |
| } | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment