firstParamType

protected static Class<M> firstParamType<M extends Message>(Method handler)

Returns the class of the first parameter of the passed handler method object.

It is expected that the first parameter of the passed method is always of a class implementing Message.

Return

the class of the first method parameter

Parameters

handler

the method object to take first parameter type from

Throws

if the first parameter isn't a class implementing Message