posted 7 years ago
I have a question in regards to passing objects into methods that don't directly use the object, but pass them to other methods. This object requires a spring bean. Is this a bad idea and a sign of a design problem? In the code below ExpeditionEntitiesService is the object which requires the spring bean (BcidService). Do you have any suggestions on how I can make this code better?
Here is a REST service which uploads a file:
The next class is used to convert the file to triples to be stored in Apache fuseki TBD:
The next class is used by the Triplifier to generate the mapping file used to create the triples:
The next class is used to get the unique persistent identifier for the triples. Here is where I need the spring bean (BcidService):