# Comprehensive Examples of Using a Service (LifecycleComponent) in a Plugin

**URL:** <https://discuss.elastic.co/t/comprehensive-examples-of-using-a-service-lifecyclecomponent-in-a-plugin/28361>\
**Category:** Elasticsearch\
**Created:** [August 31, 2015, 4:45pm UTC](https://discuss.elastic.co/t/comprehensive-examples-of-using-a-service-lifecyclecomponent-in-a-plugin/28361 "2015-08-31T16:45:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nzhiltsov](https://avatars.discourse-cdn.com/v4/letter/n/a88e57/32.png) [@nzhiltsov](https://discuss.elastic.co/u/nzhiltsov)\
**Post date:** [August 31, 2015, 4:45pm UTC](https://discuss.elastic.co/t/comprehensive-examples-of-using-a-service-lifecyclecomponent-in-a-plugin/28361/1 "2015-08-31T16:45:00Z")

</div>

Hi,

how can I find a detailed example of using services in ES plugin? How should I bind their implementations? Any my tries ended up with "Binding points to itself" message.

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [September 1, 2015, 3:58pm UTC](https://discuss.elastic.co/t/comprehensive-examples-of-using-a-service-lifecyclecomponent-in-a-plugin/28361/2 "2015-09-01T15:58:13Z")

</div>

Could you give a bit more details about services that you are trying to use? What are you trying to achieve?

---

<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 5, 2017, 11:52pm UTC](https://discuss.elastic.co/t/comprehensive-examples-of-using-a-service-lifecyclecomponent-in-a-plugin/28361/3 "2017-07-05T23:52:52Z")

</div>


