-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from BLCK-B/dev
8.3
- Loading branch information
Showing
47 changed files
with
1,864 additions
and
1,286 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
58 changes: 58 additions & 0 deletions
58
src/main/java/com/blck/MusicReleaseTracker/Core/BeanConfig.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package com.blck.MusicReleaseTracker.Core; | ||
|
||
import com.blck.MusicReleaseTracker.*; | ||
import com.blck.MusicReleaseTracker.DB.DBqueries; | ||
import com.blck.MusicReleaseTracker.DB.ManageMigrateDB; | ||
import com.blck.MusicReleaseTracker.Scraping.ScrapeProcess; | ||
import com.blck.MusicReleaseTracker.FrontendAPI.SSEController; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
/** config class for spring boot to manage lifecycle of the beans, this helps avoid static classes | ||
each bean has a single instance, beans defined here can be used by other classes as dependencies */ | ||
@Configuration | ||
public class BeanConfig { | ||
|
||
@Bean | ||
public ValueStore valueStore() { | ||
return new ValueStore(); | ||
} | ||
|
||
@Bean | ||
public ErrorLogging errorLogging(ValueStore store) { | ||
return new ErrorLogging(store); | ||
} | ||
|
||
@Bean | ||
public ScrapeProcess scrapeProcess(ErrorLogging errorLogging, DBqueries dBqueries, SSEController sseController) { | ||
return new ScrapeProcess(errorLogging, dBqueries, sseController); | ||
} | ||
|
||
@Bean | ||
public GUIController guiController(ValueStore valueStore, ErrorLogging errorLogging, | ||
ScrapeProcess scrapeProcess, ConfigTools config, | ||
ManageMigrateDB manageMigrateDB, DBqueries dBqueries) { | ||
return new GUIController(valueStore, errorLogging, scrapeProcess, config, dBqueries, manageMigrateDB); | ||
} | ||
|
||
@Bean | ||
public ConfigTools configTools(ValueStore valueStore, ErrorLogging errorLogging) { | ||
return new ConfigTools(valueStore, errorLogging); | ||
} | ||
|
||
@Bean | ||
public ManageMigrateDB manageMigrateDB(ValueStore valueStore, ErrorLogging errorLogging) { | ||
return new ManageMigrateDB(valueStore, errorLogging); | ||
} | ||
|
||
@Bean | ||
public DBqueries dBqueries(ValueStore valueStore, ErrorLogging errorLogging, ConfigTools configTools, ManageMigrateDB manageMigrateDB) { | ||
return new DBqueries(valueStore, errorLogging, configTools, manageMigrateDB); | ||
} | ||
|
||
@Bean | ||
public StartSetup startSetup(ValueStore valueStore, ErrorLogging errorLogging) { | ||
return new StartSetup(valueStore, errorLogging); | ||
} | ||
|
||
} |
This file contains 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
50 changes: 0 additions & 50 deletions
50
src/main/java/com/blck/MusicReleaseTracker/Core/MRTConfig.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/main/java/com/blck/MusicReleaseTracker/Core/SourcesEnum.java
This file contains 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
This file contains 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
Oops, something went wrong.