public void addGlobalTagLibConfig ( GlobalTagLibConfig globalTagLibConfig ) { try { TldParser tldParser = new TldParser ( this , configManager , false , globalTagLibConfig . getClassloader ( ) ) ; if ( globalTagLibConfig . getClassloader ( ) == null ) loadTldFromJarInputStream ( globalTagLibConfig , tldParser ) ; else loadTldFromClassloader ( globalTagLibConfig , tldParser ) ; globalTagLibConfigList . add ( globalTagLibConfig ) ; } catch ( JspCoreException e ) { if ( com . ibm . ejs . ras . TraceComponent . isAnyTracingEnabled ( ) && logger . isLoggable ( Level . SEVERE ) ) { logger . logp ( Level . SEVERE , CLASS_NAME , "addGlobalTagLibConfig" , "failed to create TldParser " , e ) ; } } }
add some GlobalTabLibConfig to the global tag libs we know about . If the provided config provides a classloader we will load the TLDs via that class loaders otherwise the JAR URL will be used to find the TLDs .