public static Renderer getRenderer ( final WComponent component , final RenderContext context ) { Class < ? extends WComponent > clazz = component . getClass ( ) ; Duplet < String , Class < ? > > key = new Duplet < String , Class < ? > > ( context . getRenderPackage ( ) , clazz ) ; Renderer renderer = INSTANCE . renderers . get ( key ) ; if ( renderer == null ) { renderer = INSTANCE . findRenderer ( component , key ) ; } else if ( renderer == NULL_RENDERER ) { return null ; } return renderer ; }
Retrieves a renderer which can renderer the given component to the context .