* Overrides to set the query targets via policy, if user has not already set the targets via hint
* explicitly on this query.
*/
@Override
public Object execute(Map params) {
TargetFetchConfiguration fetch = (TargetFetchConfiguration)getFetchConfiguration();
if (!fetch.isExplicitTarget()) {
QueryTargetPolicy policy = _conf.getQueryTargetPolicyInstance();
if (policy != null) {
String[] targets = policy.getTargets(getQueryString(), Collections.unmodifiableMap(params),
getLanguage(), _conf.getActiveSliceNames(), this.getBroker());
fetch.setTargets(targets);
}
}
return super.execute(params);
}