private static < T extends Encoder > T map ( String name , T encoder ) { Encoder old = ENCODERS_MAP . put ( name , encoder ) ; assert old == null ; return encoder ; }
Internal method to setup and map encoder singletons .