@ Pure public static ServiceLoader < SREBootstrap > getServiceLoader ( boolean onlyInstalledInJRE ) { synchronized ( SRE . class ) { ServiceLoader < SREBootstrap > sl = loader == null ? null : loader . get ( ) ; if ( sl == null ) { if ( onlyInstalledInJRE ) { sl = ServiceLoader . loadInstalled ( SREBootstrap . class ) ; } else { sl = ServiceLoader . load ( SREBootstrap . class ) ; } loader = new SoftReference <> ( sl ) ; } return sl ; } }
Replies all the installed SRE into the class path .