Using Service Loader along with Singleton Design is really not possible.
Because Service Loader always going to return new object after loading.
To overcome this following is the useful approach to design such requirement.
This is about looking for :
- Always getting Single Object
- Using Service Loader
Injectable Singleton - APIDesign
No comments:
Post a Comment