You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/05/30 23:23:25 UTC

[GitHub] [incubator-shardingsphere] cherrylzhao opened a new issue #2477: enhance NewInstanceServiceLoader.

cherrylzhao opened a new issue #2477: enhance NewInstanceServiceLoader.
URL: https://github.com/apache/incubator-shardingsphere/issues/2477
 
 
   currently we leverage the JDK `ServiceLoader` to load the SPI implement class, `ServiceLoader` could not cache found classes, it will  search class every time using ClassLoader. it is not convenient when we need to acquire instance more than one time. so we consider about extending capability of raw ServiceLoader.
   
   - [ ] only cache class instead of instance while registry
   - [ ] provide loading instance by type
   - [ ] provide loading instance by args

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services