parseToMetadata
Parses the given command class to extract command metadata.
This method uses reflection to analyze the command class and its properties, extracting information about aggregate targeting, property accessors, and command characteristics.
Return
the parsed CommandMetadata for the command class
Parameters
TYPE
the type of the command class
M
the metadata type (should be CommandMetadata)
type
the Class object representing the command type