* this method for it to have any effect.
*
* @param library JSFLibrary instance
*/
private void implementationFlagSet(JSFLibrary library) {
JSFLibraryRegistry jsfLibReg = JSFLibraryRegistryUtil.getInstance().getJSFLibraryRegistry();
if (jsfLibReg != null) {
JSFLibrary defaultImpl = jsfLibReg.getDefaultImplementation();
if (
library.isImplementation() &&
defaultImpl == null
) {
jsfLibReg.setDefaultImplementation(library);
} else if (
!library.isImplementation() &&
(defaultImpl != null && library.getID().equals(defaultImpl.getID())))
{
setNewDefaultImplementation();