Class FieldPartExtractorRegistry

java.lang.Object
nl.datasteel.crudcraft.codegen.reader.field.FieldPartExtractorRegistry

public final class FieldPartExtractorRegistry extends Object
Registry for field part extractors. Provides a mapping from field part types to their corresponding extractors. This allows for dynamic extraction of field parts based on their type.
  • Field Details

    • EXTRACTORS

      public static final Map<Class<?>,FieldPartExtractor<?>> EXTRACTORS
      A map that associates field part types with their corresponding extractors. Each extractor is responsible for extracting a specific part of a field.
  • Method Details

    • get

      public static <T> FieldPartExtractor<T> get(Class<T> partType)
      Retrieves the extractor for a given field part type.
      Type Parameters:
      T - the type of the field part
      Parameters:
      partType - the class of the field part type
      Returns:
      the extractor for the specified field part type, or null if not found