# Overriding an installed ActionPlugin that implements getRestHandlerWrapper()

**URL:** <https://discuss.elastic.co/t/overriding-an-installed-actionplugin-that-implements-getresthandlerwrapper/235750>\
**Category:** Elasticsearch\
**Created:** [June 4, 2020, 12:31pm UTC](https://discuss.elastic.co/t/overriding-an-installed-actionplugin-that-implements-getresthandlerwrapper/235750 "2020-06-04T12:31:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulkarajgikar](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@rahulkarajgikar](https://discuss.elastic.co/u/rahulkarajgikar)\
**Post date:** [June 4, 2020, 12:31pm UTC](https://discuss.elastic.co/t/overriding-an-installed-actionplugin-that-implements-getresthandlerwrapper/235750/1 "2020-06-04T12:31:58Z")

</div>

Hi everyone,

So I've created an Action Plugin that intercepts RestRequests and performs some action for specific endpoints; I used the `getRestHandlerWrapper()` function to do this.

The issue is that I already have another plugin installed that implements this function, so elasticsearch doesn't start up. I know the function documentation says that only one installed plugin should implement this function. I was just wondering if there was any setting I could change, so that I could have both plugins installed, but disable one of them when I start elasticsearch, because I would like to be able to have both plugins installed at once.

Also, would it be possible for my plugin to override the `getRestHandlerWrapper() `function of the existing plugin? So that Elasticsearch uses my RestHandlerWrapper instead of the preinstalled plugin in case both plugins are installed.

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 2, 2020, 12:32pm UTC](https://discuss.elastic.co/t/overriding-an-installed-actionplugin-that-implements-getresthandlerwrapper/235750/2 "2020-07-02T12:32:04Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
