Extract LookService from LookCommand and all callers #535
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
java
question
refactor
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
agony-forge/agonyforge!535
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/look-service-extraction"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
LookCommand.doLook() and doLookContainer() were static methods that required
passing RepositoryBundle and SessionAttributeService as parameters to every
call site. This made the call signature verbose and tightly coupled command
classes to infrastructure dependencies.
This change:
with proper Spring DI of RepositoryBundle and SessionAttributeService
TransferCommand, CharacterViewQuestion) to inject LookService via constructor
admin info, other characters, items on ground, LINKDEAD flag, container
contents)
calling the removed static methods
50b4e02224b6a2e8b4d3