From 2fb890a485a38d13a0b59764a9b0fd3114d057a4 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Sun, 7 Dec 2025 02:17:29 -0300 Subject: [PATCH] Register AlbumArtService with service locator and update gitignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit completes the AlbumArt feature integration by registering the service with the dependency injection system and updating repository ignore rules. Service Registration: - Initialize AlbumArtRepository with EntityManagerFactory - Create AlbumArtService instance with repository dependency - Register AlbumArtService with ServiceLocator for handler injection - Ensures all AlbumArt action handlers can resolve dependencies The service follows the established initialization pattern used by other entities (SamplingRate, BitDepth, BitRate, etc.) ensuring consistency across the application architecture. Repository Configuration: - Add src/scripts/* to .gitignore for local script files - Add local-repo/ to .gitignore for local Maven repository cache - Prevents accidental commits of development artifacts and dependencies These changes complete the AlbumArt feature, making it fully operational and accessible through the action handler system. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .gitignore | 4 +++- .../mediamanager/service/delegate/DelegateActionManager.java | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 30116b9..db764ec 100644 --- a/.gitignore +++ b/.gitignore @@ -51,4 +51,6 @@ src/main/resources/config.properties src/main/resources/application.properties # Allow example configuration files to be committed -!src/main/resources/*.properties.example \ No newline at end of file +!src/main/resources/*.properties.example +src/scripts/* +local-repo/ \ No newline at end of file diff --git a/src/main/java/com/mediamanager/service/delegate/DelegateActionManager.java b/src/main/java/com/mediamanager/service/delegate/DelegateActionManager.java index e4715ba..5e2aa8a 100644 --- a/src/main/java/com/mediamanager/service/delegate/DelegateActionManager.java +++ b/src/main/java/com/mediamanager/service/delegate/DelegateActionManager.java @@ -3,6 +3,7 @@ package com.mediamanager.service.delegate; import com.google.protobuf.ByteString; import com.mediamanager.protocol.TransportProtocol; import com.mediamanager.repository.*; +import com.mediamanager.service.albumart.AlbumArtService; import com.mediamanager.service.bitdepth.BitDepthService; import com.mediamanager.service.bitrate.BitRateService; import com.mediamanager.service.composer.ComposerService; @@ -75,6 +76,10 @@ public class DelegateActionManager { SamplingRateService samplingRateService = new SamplingRateService(samplingRateRepository); serviceLocator.register(SamplingRateService.class, samplingRateService); + AlbumArtRepository albumArtRepository = new AlbumArtRepository(entityManagerFactory); + AlbumArtService albumArtService = new AlbumArtService(albumArtRepository); + serviceLocator.register(AlbumArtService.class, albumArtService); + serviceLocator.logRegisteredServices(); logger.info("Services initialized successfully");