synchronized private void _put ( String componentFamily , String rendererType , Renderer renderer ) { Map < String , Renderer > familyRendererMap = _renderers . get ( componentFamily ) ; if ( familyRendererMap == null ) { familyRendererMap = new ConcurrentHashMap < String , Renderer > ( 8 , 0.75f , 1 ) ; _renderers . put ( componentFamily , familyRendererMap ) ; } else { if ( familyRendererMap . get ( rendererType ) != null ) { // this is not necessarily an error, but users do need to be // very careful about jar processing order when overriding // some component's renderer with an alternate renderer. log . fine ( "Overwriting renderer with family = " + componentFamily + " rendererType = " + rendererType + " renderer class = " + renderer . getClass ( ) . getName ( ) ) ; } } familyRendererMap . put ( rendererType , renderer ) ; }
Put the renderer on the double map