public static void addEncoder(Class t, MessageEncoder encoder){ if (encoderMap == null ){ encoderMap = new HashMap<Class, MessageEncoder>(); } encoderMap.put(t, encoder); }
public static Map<Class, MessageEncoder> getEncoderMap(){ return encoderMap; }