public List getPlugins ( final Class pluginClass ) { synchronized ( pluginMap ) { List pluginList = new ArrayList ( pluginMap . size ( ) ) ; Iterator iter = pluginMap . values ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { Object plugin = iter . next ( ) ; if ( pluginClass . isInstance ( plugin ) ) { pluginList . add ( plugin ) ; } } return pluginList ; } }
Returns all the plugins for a given repository that are instances of a certain class .