private void addLoader ( ClassLoader loader ) { for ( int i = _loaders . size ( ) - 1 ; i >= 0 ; i -- ) { WeakReference < ClassLoader > ref = _loaders . get ( i ) ; ClassLoader refLoader = ref . get ( ) ; if ( refLoader == null ) _loaders . remove ( i ) ; if ( refLoader == loader ) return ; } _loaders . add ( new WeakReference < ClassLoader > ( loader ) ) ; EnvLoader . addClassLoaderListener ( this , loader ) ; }
Adds a class loader to the list of dependency loaders .