Interface JBBPMapperCustomFieldProcessor


public interface JBBPMapperCustomFieldProcessor
The Interface describes a processor which will be called during mapping of fields of a parsed binary structure to a mapping class instance, if they marked for custom processing.
Since:
1.0
  • Method Details

    • prepareObjectForMapping

      Object prepareObjectForMapping(JBBPFieldStruct parsedBlock, Bin annotation, Field field)
      Prepare an object to be set to a custom mapping field.
      Parameters:
      parsedBlock - the structure root of parsed binary packet, must not be null
      annotation - the annotation for mapping field, must not be null
      field - the mapping field in a mapping class, must not be null
      Returns:
      an object which will be set to the field in a mapping class instance, it can be null for non-primitive fields