public static < T > void registerPluginType ( String pluginType , StatsFactory statsFactory , StatusFetcherFactory < T > statusFetcherFactory , StatusParser < T , StatusData > parser ) { PluginTypeConfiguration conf = new PluginTypeConfiguration <> ( statsFactory , statusFetcherFactory , parser ) ; PluginTypeConfiguration previous = registry . putIfAbsent ( pluginType , conf ) ; if ( previous != null ) { getLogger ( ) . warn ( "Registry already have mapping for plugin type '" + pluginType + "'!" ) ; } }
Register plugin type and associate given factories with it .