Implements decorator to auto-detect message handler methods.