# ComponentModelDelegateFactory Issue

**URL:** <https://forum.inductiveautomation.com/t/componentmodeldelegatefactory-issue/95751>\
**Category:** Module Development\
**Tags:** ignition81, perspective\
**Created:** [September 9, 2024, 7:14pm UTC](https://forum.inductiveautomation.com/t/componentmodeldelegatefactory-issue/95751 "2024-09-09T19:14:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benjamin\_Furlani](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/benjamin_furlani/32/66084_2.png) [@Benjamin\_Furlani](https://forum.inductiveautomation.com/u/Benjamin_Furlani)\
**Post date:** [September 9, 2024, 7:14pm UTC](https://forum.inductiveautomation.com/t/componentmodeldelegatefactory-issue/95751/1 "2024-09-09T19:14:44Z")

</div>

I am experiencing a very strange problem.

I accidentally put a component model delegate in the same place as my GatewayHook. In doing some code cleanup I moved it to a different folder under gateway. I updated the package to include the delegates folder and now my GatewayHook is throwing a fit

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/f/7fc801de74cf9257092d478f555676f54d1c8c1a.png)

it is the exact same code; I updated the import path for it. It's found and everything but still is mad. I put it back at the same folder level as the GatewayHook and all is good in the world. I thought it was my java language engine being wonk, so I removed its cache and reloaded and that didn't fix it. Can't build it or anything. Not sure why this is a problem so some guidance would be appreciated.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 9, 2024, 10:28pm UTC](https://forum.inductiveautomation.com/t/componentmodeldelegatefactory-issue/95751/2 "2024-09-09T22:28:38Z")

</div>

Does your `AssetSelectorDelegate` define a constructor that accepts `com.inductiveautomation.perspective.gateway.api.Component` as a single parameter? Does your module build on the command line (i.e. is it just the IDE that's broken)?

---

<div class="post-metadata">

**Author:** ![Benjamin\_Furlani](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/benjamin_furlani/32/66084_2.png) [@Benjamin\_Furlani](https://forum.inductiveautomation.com/u/Benjamin_Furlani)\
**Post date:** [September 10, 2024, 2:15pm UTC](https://forum.inductiveautomation.com/t/componentmodeldelegatefactory-issue/95751/3 "2024-09-10T14:15:41Z")

</div>

it was a scope issue... I apparently managed to make my constructor protected instead of public. Changed that and it worked. Must have accidentally auto filled that in.
