- Create 2 services and a POJO class: ClassicalMusicPlayer – which will contain a method that can play classical music. There should be a field (some kind of list) with music tracks. RockMusicPlayer - which will contain a method that can play rock music. Each of these services has a list with 2 musical compositions of the corresponding types. Musical composition class which has 2 fields - the name of the song and its artist. Create a Music Player service (MusicPlayer - 3 service) and inject 2 created services into it. The class should have 2 methods for playing music, depending on the method called, the appropriate music will be played. Complete this task using 3 types of configurations.
-
Notifications
You must be signed in to change notification settings - Fork 0
DojiDoe/cursor-hw4-SpringDi
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published