Action filters should be simple and stateless. This is the reason the getActionFilters() method doesn't take any parameters. What do you need all those services for?
I need that because my plugin implements basic auth and I'd like users to know the taskID associated to each users.
That enables the admins to associate long standing task to a specific account.
Also I want to log the owner of each task and how long did the task take. So I measure response_time(taskID) - request_time(taskID) and associate it to a user name.
This way people can see what users this month requested inefficient queries.
So after all, I'd just be happy to find a way given an ActionRequest, to tell what task id it belongs to. That's all!
Never mind the taskID can be found in the ActionFilter.handleRequestmethod, and I could just instantiate the other like this new IndexNameExpressionResolver(settings).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.