<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Can I inject custom module reference in FinderImpl  ????</title>
  <link rel="self" href="https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119567183" />
  <subtitle>Can I inject custom module reference in FinderImpl  ????</subtitle>
  <id>https://uat.liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119567183</id>
  <updated>2026-08-02T05:40:05Z</updated>
  <dc:date>2026-08-02T05:40:05Z</dc:date>
  <entry>
    <title>RE: Can I inject custom module reference in FinderImpl  ????</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119604610" />
    <author>
      <name>Minhchau Dang</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119604610</id>
    <updated>2020-07-17T00:37:17Z</updated>
    <published>2020-07-17T00:37:17Z</published>
    <summary type="html">Is your service builder service created using Spring DI or is it created with OSGi DS?&lt;br /&gt;&lt;a href="https://help.liferay.com/hc/en-us/articles/360032624732-Migrating-a-Service-Builder-Module-from-Spring-DI-to-OSGi-DS"&gt;https://help.liferay.com/hc/en-us/articles/360032624732-Migrating-a-Service-Builder-Module-from-Spring-DI-to-OSGi-DS&lt;/a&gt;&lt;br /&gt;Given your code, there will be one instantiated by DS, and it will have a non-null reference, but if there is another one instantiated by Spring DI, its reference won&amp;#39;t be populated.</summary>
    <dc:creator>Minhchau Dang</dc:creator>
    <dc:date>2020-07-17T00:37:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Can I inject custom module reference in FinderImpl  ????</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119581193" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119581193</id>
    <updated>2020-07-11T17:19:52Z</updated>
    <published>2020-07-11T17:19:52Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi ,You can inject a utility in finder impl , you can refer and try something like&amp;nbsp; journalconverterimpl and journalconverter&amp;nbsp;&lt;br&gt;&lt;a href="https://github.com/liferay/liferay-portal/blob/e3eeacea100fed8f29fa749cd5849d789574cc94/modules/apps/journal/journal-service/src/main/java/com/liferay/journal/internal/util/JournalConverterImpl.java"&gt;https://github.com/liferay/liferay-portal/blob/e3eeacea100fed8f29fa749cd5849d789574cc94/modules/apps/journal/journal-service/src/main/java/com/liferay/journal/internal/util/JournalConverterImpl.java&lt;/a&gt;&lt;br&gt;&lt;a href="https://github.com/liferay/liferay-portal/blob/09230c4f8d5d08045c305c359ffb359d509320d0/modules/apps/journal/journal-api/src/main/java/com/liferay/journal/util/JournalConverter.java"&gt;https://github.com/liferay/liferay-portal/blob/09230c4f8d5d08045c305c359ffb359d509320d0/modules/apps/journal/journal-api/src/main/java/com/liferay/journal/util/JournalConverter.java&lt;/a&gt;&lt;br&gt;This can be referred as&amp;nbsp;&lt;br&gt;&lt;pre&gt;&lt;code&gt;[code]   @Reference
    private JournalConverter _journalConverter; &lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2020-07-11T17:19:52Z</dc:date>
  </entry>
  <entry>
    <title>Can I inject custom module reference in FinderImpl  ????</title>
    <link rel="alternate" href="https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119567182" />
    <author>
      <name>Prathibha h m</name>
    </author>
    <id>https://uat.liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119567182</id>
    <updated>2020-07-08T15:27:25Z</updated>
    <published>2020-07-08T15:27:25Z</published>
    <summary type="html">I have a custom module which has some util classes which I need to use in my FinderImpl , is it a good way to inject the util class into FinderImpl, Please do share example if you have.custom module is exporting util class.FinderImpl gradle has dependency added .&lt;br /&gt;but I get reference as null. &lt;br /&gt;&lt;br /&gt;@Component(service = SampleFinder.class)&lt;br /&gt;public class  SampleFinderImpl extends  SampleFinderBaseImpl implements  SampleFinder {&lt;br /&gt;//Methods....@Reference&lt;br /&gt;    private MathUtil  _MathUtil;&lt;br /&gt;}&lt;br /&gt;-----------------------In finder gradle-----------compileOnly project(&amp;#34;:modules:abc:com.test.first.util&amp;#34;)&lt;br /&gt;------------------------------------------------------in  util package - bnd.bnd.Export-Package: com.test.first.util</summary>
    <dc:creator>Prathibha h m</dc:creator>
    <dc:date>2020-07-08T15:27:25Z</dc:date>
  </entry>
</feed>
