/** * Create a new instance * * @param inboundMessageType The type of messages to match and so decode */ protected MessageToMessageDecoder(Type inboundMessageType) { matcher = AbstractTypeParameterMatcher.get(inboundMessageType); }
/** * Create a new instance which will try to detect the types to match out of the type parameter of the class. */ protected MessageToMessageDecoder() { matcher = AbstractTypeParameterMatcher.find(this, typeof(MessageToMessageDecoder <>), "I"); }