-
Notifications
You must be signed in to change notification settings - Fork 55
[WPS 4.0] RepositoryManager VS ContentInjection #195
Comments
This seems to become cumbersome: At a first glimpse letting However, the Will have a look at if there's a way avoiding this right now. |
So, the R repository is the only one annotated with Component, right? Could the annotation maybe be removed and the injected stuff be requested from the config module? |
So making a loosely coupled design (not perfect though) hard wired again so that it integrates better in the old fashioned design? I am a bit hesitant about that. Actually we are talking about WPS 4.0 right? Don't know about resources available for discussing current and future architecture and how to wire components and (probably more important) for implementing whole stuff. Do we have a refactor strategy available, at least listing all core components which will have to be refactored? Is Iceland the only next step? Seems to be a bit fuzzy (at least for me) what consequences this will have too. |
I think we could at least pull in an intermediate tier: Refactor |
Fine with me, if this is the way to make WPS4R work again. |
I found the code for the wrapper repository that I once implemented but that was somehow lost in the merge process, maybe that helps: |
Currently, the
RepositoryManager
creates instances ofIAlgorithmRepository
via reflection ignoring all instances getting instantiated from the IoC Container, for example classes marked as@Components
.That is, we have two instances available after startup
RepositoryManager
without having@Autowired
fields set or@PostConstruct
methods being calledFor
52n-wps-r
in particular this results in empty algorithms collections when usingRepositoryManager
'sLocalRAlgoritmRepository
instance.The text was updated successfully, but these errors were encountered: