public void init ( ) { if ( logger != null && StringUtils . isNotEmpty ( name ) ) { if ( logger . isWarnEnabled ( ) && ! ConfigUtils . isFilePath ( name ) ) { try { List < String > realPaths = new ArrayList < String > ( ) ; Enumeration < URL > e = Thread . currentThread ( ) . getContextClassLoader ( ) . getResources ( name ) ; while ( e . hasMoreElements ( ) ) { URL url = ( URL ) e . nextElement ( ) ; realPaths . add ( url . getFile ( ) ) ; } if ( realPaths . size ( ) > 1 ) { logger . warn ( "Multi httl config in classpath, conflict configs: " + realPaths + ". Please keep only one config." ) ; } } catch ( IOException e ) { logger . error ( e . getMessage ( ) , e ) ; } } if ( logger . isInfoEnabled ( ) ) { String realPath = ConfigUtils . getRealPath ( name ) ; if ( StringUtils . isNotEmpty ( realPath ) ) { logger . info ( "Load httl config from " + realPath + " in " + ( name . startsWith ( "/" ) ? "filesystem" : "classpath" ) + "." ) ; } } } }
Init the engine .