Hi,
I'm trying to modify the behaviour of OpenSearch integrated into Alfresco Explorer interface, which is actually implemented by the KeywordSearch class.
So I did create a KeywordSearch subclass, named CustomKeywordSearch.
Then I had to override the webscript bean declaration "webscript.org.alfresco.repository.search.keywordsearch.get" in web-scripts-application-context.xml, to link it to my custom class.
But it seems that there is no way to override Alfresco webscript beans in a clean way, because all custom spring files (even in modules and extension) are loaded before the Alfresco web-scripts-application-context.xml. So we can't override those webscript bean definition.
I know, it would be possible to patch the KeywordSearch class, or modify default spring files, but it won't be very clean, and could cause problems for future upgrades.
Any idea on good way to achieve this ?
Denis