Last active
March 12, 2020 14:19
-
-
Save SDiamante13/182b63840b8aa4f47e77fb0da52f06ee to your computer and use it in GitHub Desktop.
A Service that illustrates no dependency injection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CustomerService { | |
| public Customer getCustomerById(long id) { | |
| CustomerRepository customerRepository = new CustomerRepository(); | |
| return customerRepository.findById(id); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment