Register AlbumArtService with service locator and update gitignore
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 <noreply@anthropic.com>
This commit is contained in:
parent
745ba7e5fc
commit
2fb890a485
|
|
@ -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
|
||||
!src/main/resources/*.properties.example
|
||||
src/scripts/*
|
||||
local-repo/
|
||||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue