public void rebind ( Remote [ ] remotes ) { String rmiUrl = null ; //loop thru remote objects for ( int i = 0 ; i < remotes . length ; i ++ ) { //use is if instance of Identifier if ( remotes [ i ] instanceof Identifier && ! Text . isNull ( ( ( Identifier ) remotes [ i ] ) . getId ( ) ) ) { rmiUrl = ( ( Identifier ) remotes [ i ] ) . getId ( ) ; } else { //get rmiUrl rmiUrl = Config . getProperty ( remotes [ i ] . getClass ( ) , "bind.rmi.url" ) ; } //rebind rebind ( rmiUrl , remotes [ i ] ) ; } }
Bind all object . Note that the rmiUrl in located in the config . properties