public MessageMgrBuilder setHandler ( E_MessageType type ) { if ( type != null ) { this . messageHandlers . put ( type , new MessageTypeHandler ( type ) ) ; } else { this . buildErrors . addError ( "{}: cannot add handler for empty type" , this . getClass ( ) . getSimpleName ( ) ) ; } return this ; }
Activate a message type and sets a type handler with max count set to 100 . An existing handler will be overwritten .