# Get registered Tag Providers

**URL:** <https://forum.inductiveautomation.com/t/get-registered-tag-providers/7184>\
**Category:** Module Development\
**Created:** [September 3, 2013, 11:21pm UTC](https://forum.inductiveautomation.com/t/get-registered-tag-providers/7184 "2013-09-03T23:21:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fejowayne8701](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@fejowayne8701](https://forum.inductiveautomation.com/u/fejowayne8701)\
**Post date:** [September 3, 2013, 11:21pm UTC](https://forum.inductiveautomation.com/t/get-registered-tag-providers/7184/1 "2013-09-03T23:21:38Z")

</div>

We have a custom tag provider that does not have a startup in the module hook. Being that our tagprovider is a one of it is extremely difficult to implement the startup/shutdown that is in the simple tag provider.  
I’d like to know how can I get a list of the registered tag providers from the Gateway context. When I try getModuleInformation it does return the name of the provider but I can’t cast that to a TagProvider as it is of type TagProviderMetaImpl and not a TagProvider itself.

INFO | jvm 7 | 2013/09/03 23:16:34 | ERROR [BETagProviderModule] [23:16:34,116]: Error starting BeTagprovider java.lang.ClassCastException: com.  
inductiveautomation.ignition.common.sqltags.TagProviderMetaImpl cannot be cast to com.inductiveautomation.ignition.gateway.sqltags.TagProvider.

---

<div class="post-metadata">

**Author:** ![nclemeur](https://avatars.discourse-cdn.com/v4/letter/n/b5e925/32.png) [@nclemeur](https://forum.inductiveautomation.com/u/nclemeur)\
**Post date:** [September 4, 2013, 4:27am UTC](https://forum.inductiveautomation.com/t/get-registered-tag-providers/7184/2 "2013-09-04T04:27:16Z")

</div>

I am not sure I understand your problem but can’t you get that information from TagProviderMetaImpl instead? From there you can get the name, and from the name you can probably do:

```auto
gatewayContext.getTagManager().getTagProvider(name)
```

Cheers

Nicolas

---

<div class="post-metadata">

**Author:** ![fejowayne8701](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@fejowayne8701](https://forum.inductiveautomation.com/u/fejowayne8701)\
**Post date:** [September 4, 2013, 3:43pm UTC](https://forum.inductiveautomation.com/t/get-registered-tag-providers/7184/3 "2013-09-04T15:43:44Z")

</div>

That method is not exposed through the SDK I have

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 4, 2013, 4:02pm UTC](https://forum.inductiveautomation.com/t/get-registered-tag-providers/7184/4 "2013-09-04T16:02:15Z")

</div>

What version of the SDK are you using?

---

<div class="post-metadata">

**Author:** ![fejowayne8701](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@fejowayne8701](https://forum.inductiveautomation.com/u/fejowayne8701)\
**Post date:** [September 4, 2013, 4:08pm UTC](https://forum.inductiveautomation.com/t/get-registered-tag-providers/7184/5 "2013-09-04T16:08:35Z")

</div>

7.4.2

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 4, 2013, 4:19pm UTC](https://forum.inductiveautomation.com/t/get-registered-tag-providers/7184/6 "2013-09-04T16:19:50Z")

</div>

Bummer. The getTagProvider() method exists in 7.5 and later.

---

<div class="post-metadata">

**Author:** ![fejowayne8701](https://avatars.discourse-cdn.com/v4/letter/f/e8c25b/32.png) [@fejowayne8701](https://forum.inductiveautomation.com/u/fejowayne8701)\
**Post date:** [October 15, 2013, 10:49pm UTC](https://forum.inductiveautomation.com/t/get-registered-tag-providers/7184/7 "2013-10-15T22:49:00Z")

</div>

That’s a bummer for sure. Good thing we are considering an upgrade. Thanks for the assistance.
