I would expect there to be events for when a user performs a search in Bitbucket but there isn't. There seems no way of intercepting or handling searches.
Atlassian Plugin framework unfortunately only goes so far. OSGI Containers, Internal packages all add to the problems of developing plugins.
Developing plugins is sometimes like being a car mechanic when somebody has welded part of the bonnet shut.
Are there any patterns that can be used for accessing otherwise inaccessible parts of the application. I wondered about AOP but I am not sure this can be used outside of the plugins OSGI container and across class loaders.
Atlassian please could you add a search event? The absence of one is causing us real problems.