mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 04:08:27 +08:00

the old get_instance() method in ZCL_ABAPGIT_PERSIST_SETTINGS has been moved to a method in zcl_abapgit_persist_factory, plus interface added. Added to persist injector
40 lines
624 B
ABAP
40 lines
624 B
ABAP
CLASS zcl_abapgit_persist_injector DEFINITION
|
|
PUBLIC
|
|
CREATE PRIVATE
|
|
FOR TESTING .
|
|
|
|
PUBLIC SECTION.
|
|
|
|
CLASS-METHODS set_repo
|
|
IMPORTING
|
|
!ii_repo TYPE REF TO zif_abapgit_persist_repo .
|
|
|
|
CLASS-METHODS set_settings
|
|
IMPORTING
|
|
!ii_settings TYPE REF TO zif_abapgit_persist_settings .
|
|
|
|
PROTECTED SECTION.
|
|
PRIVATE SECTION.
|
|
|
|
|
|
ENDCLASS.
|
|
|
|
|
|
|
|
CLASS ZCL_ABAPGIT_PERSIST_INJECTOR IMPLEMENTATION.
|
|
|
|
|
|
METHOD set_repo.
|
|
|
|
zcl_abapgit_persist_factory=>gi_repo = ii_repo.
|
|
|
|
ENDMETHOD.
|
|
|
|
|
|
METHOD set_settings.
|
|
|
|
zcl_abapgit_persist_factory=>gi_settings = ii_settings.
|
|
|
|
ENDMETHOD.
|
|
ENDCLASS.
|