# Develop an Elastic plugin for automatic index restore when you need them

**URL:** <https://discuss.elastic.co/t/develop-an-elastic-plugin-for-automatic-index-restore-when-you-need-them/182516>\
**Category:** Elasticsearch\
**Created:** [May 23, 2019, 8:51pm UTC](https://discuss.elastic.co/t/develop-an-elastic-plugin-for-automatic-index-restore-when-you-need-them/182516 "2019-05-23T20:51:51Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Victor\_Guimaraes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/victor_guimaraes/32/46749_2.png) [@Victor\_Guimaraes](https://discuss.elastic.co/u/Victor_Guimaraes)\
**Post date:** [May 24, 2019, 7:49pm UTC](https://discuss.elastic.co/t/develop-an-elastic-plugin-for-automatic-index-restore-when-you-need-them/182516/7 "2019-05-24T19:49:04Z")

</div>

For future viewers, I was able to solve the problem Overriding the Plugin class method createComponents and get the Client object parameter. But as you can see in this post [Create a plugin that needs a client](https://discuss.elastic.co/t/create-a-plugin-that-needs-a-client/125142) isn't a beautiful way, but works.

---

_[View the full topic](https://discuss.elastic.co/t/develop-an-elastic-plugin-for-automatic-index-restore-when-you-need-them/182516)._
