private void registerMethod ( Method method ) { Type genericType = method . getGenericParameterTypes ( ) [ 0 ] ; Class < ? > argumentType = resolveArgument ( genericType ) ; if ( argumentType != null && Operation . class . isAssignableFrom ( argumentType ) ) { registerMethod ( argumentType , method ) ; } }
Registers an operation for the given method .