protected Collection < JcrRepository > repositories ( ) { if ( this . state == State . RUNNING ) { final Lock lock = this . lock . readLock ( ) ; try { lock . lock ( ) ; return new ArrayList < JcrRepository > ( repositories . values ( ) ) ; } finally { lock . unlock ( ) ; } } return Collections . emptyList ( ) ; }
Returns a copy of the repositories . Note that when returned not all repositories may be active .