|
Hello and thanks again for your great work on Saiku. I would like to be able to load my custom formatter using Spring injection. so the code in OlapQueryService would be replaced by :
associated with the following spring declaration :
but I must add a dependency on spring inside saiku-service because it needs the applicationContext in order to get a new instance of the bean each time a query is done. what do you think about that ? I can do a git pull request. |
|
yeh i thought about that already, and i agree we should springify the cellsetformatter if you create a pull request i'll make sure that i'll look over it and apply it at some point (just need to find some time for the testing etc) i'd prefer not to add spring to saiku-service and either make this a SaikuProperty or define it in the context by adding this hashmap as property to a service or a helper class (or like you did in the query service itself) couldn't we just make these formatter beans non-singletons? -paul |
|
Sorry for the delay I thought I would have received notifications about answers. We could make those formatters as singletons indeed, and that would be a lot more simple, as the singleton instance would be available directly in the hashmap, but there are class fields in some of them, like ignorex in FlattenedCellSetFormatter. Another possibility is to write a CellSetFormatter factory in saiku-web, that requires moving interface ICellSetFormatter in saiku-web. |
|
true a factory sounds like the best option so far can you please log this in our issue tracker, otherwise i'll lose track of it... we can discuss the details there! |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 11 Jan, 04:10
Seen: 171 times
Last updated: 24 Jan, 04:02