dependecny injection implementation by me using reflection in java