public void listPlugins ( ) { if ( this . plugins . isEmpty ( ) ) { this . logger . info ( "No plug-in was found for Roboconf's agent." ) ; } else { StringBuilder sb = new StringBuilder ( "Available plug-ins in Roboconf's agent: " ) ; for ( Iterator < PluginInterface > it = this . plugins . iterator ( ) ; it . hasNext ( ) ; ) { sb . append ( it . next ( ) . getPluginName ( ) ) ; if ( it . hasNext ( ) ) sb . append ( ", " ) ; } sb . append ( "." ) ; this . logger . info ( sb . toString ( ) ) ; } }
This method lists the available plug - ins and logs it .