Last active
December 18, 2023 08:13
-
-
Save vladdedita/6e95ecceed64e57cb55a8af909d0318b to your computer and use it in GitHub Desktop.
This file contains 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
@Component | |
public abstract class SingletonService { | |
public void usePrototype() { | |
PrototypeService prototypeService = createPrototypeService(); | |
prototypeService.doSomething(); | |
} | |
@Lookup | |
protected abstract PrototypeService createPrototypeService(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment