All files / src/data zcl_abapgit_data_factory.clas.abap

100% Statements 69/69
100% Branches 1/1
100% Functions 0/0
100% Lines 69/69

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 701x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
CLASS zcl_abapgit_data_factory DEFINITION
  PUBLIC
  CREATE PUBLIC
  GLOBAL FRIENDS zcl_abapgit_data_injector .
 
  PUBLIC SECTION.
 
    CLASS-METHODS get_supporter
      RETURNING
        VALUE(ri_supporter) TYPE REF TO zif_abapgit_data_supporter .
    CLASS-METHODS get_serializer
      RETURNING
        VALUE(ri_serializer) TYPE REF TO zif_abapgit_data_serializer .
    CLASS-METHODS get_deserializer
      RETURNING
        VALUE(ri_deserializer) TYPE REF TO zif_abapgit_data_deserializer .
    CLASS-METHODS get_config
      RETURNING
        VALUE(ri_config) TYPE REF TO zif_abapgit_data_config .
  PROTECTED SECTION.
  PRIVATE SECTION.
 
    CLASS-DATA gi_supporter TYPE REF TO zif_abapgit_data_supporter .
    CLASS-DATA gi_serializer TYPE REF TO zif_abapgit_data_serializer .
    CLASS-DATA gi_deserializer TYPE REF TO zif_abapgit_data_deserializer .
ENDCLASS.
 
 
 
CLASS zcl_abapgit_data_factory IMPLEMENTATION.
 
 
  METHOD get_config.
    CREATE OBJECT ri_config TYPE zcl_abapgit_data_config.
  ENDMETHOD.
 
 
  METHOD get_deserializer.
 
    IF gi_deserializer IS INITIAL.
      CREATE OBJECT gi_deserializer TYPE zcl_abapgit_data_deserializer.
    ENDIF.
 
    ri_deserializer = gi_deserializer.
 
  ENDMETHOD.
 
 
  METHOD get_serializer.
 
    IF gi_serializer IS INITIAL.
      CREATE OBJECT gi_serializer TYPE zcl_abapgit_data_serializer.
    ENDIF.
 
    ri_serializer = gi_serializer.
 
  ENDMETHOD.
 
 
  METHOD get_supporter.
 
    IF gi_supporter IS INITIAL.
      CREATE OBJECT gi_supporter TYPE zcl_abapgit_data_supporter.
    ENDIF.
 
    ri_supporter = gi_supporter.
 
  ENDMETHOD.
ENDCLASS.