<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multiple configuration in Component class in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/multiple-configuration-in-component-class/m-p/460841#M132921</link>
    <description>&lt;P&gt;Thanks &lt;LI-USER uid="11813833"&gt;&lt;/LI-USER&gt;&amp;nbsp;. That was helpful!&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2022 20:39:24 GMT</pubDate>
    <dc:creator>prachiz</dc:creator>
    <dc:date>2022-07-13T20:39:24Z</dc:date>
    <item>
      <title>Multiple configuration in Component class</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/multiple-configuration-in-component-class/m-p/460635#M132846</link>
      <description>&lt;P&gt;Hi Folks,&amp;nbsp;&lt;BR /&gt;I have imported one configuration using&amp;nbsp;@Designate in my Component class. Now I need to add another one but&amp;nbsp;@Designate doesn't allow. Is there any other way I can access another configuration in the same class? Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 18:24:52 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/multiple-configuration-in-component-class/m-p/460635#M132846</guid>
      <dc:creator>prachiz</dc:creator>
      <dc:date>2022-07-12T18:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple configuration in Component class</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/multiple-configuration-in-component-class/m-p/460639#M132847</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17376816"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Unfortunately per documentation [0], multiple Object Class Definition's configurations are not allowed - there are two params &lt;EM&gt;Class&amp;lt;?&amp;gt;&lt;/EM&gt;&amp;nbsp; &lt;EM&gt;ocd()&lt;/EM&gt; (Required) &amp;amp; &lt;EM&gt;boolean factory()&lt;/EM&gt; (Optional)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-07-12 at 3.42.24 PM.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/43000iDDDB2F8F22046D61/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2022-07-12 at 3.42.24 PM.png" alt="Screen Shot 2022-07-12 at 3.42.24 PM.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;Another way, If you try extending @interface annotation, per Java documentation [1] -&amp;nbsp;&lt;SPAN&gt;No extends clause is permitted. (Annotation types implicitly extend&amp;nbsp;&lt;/SPAN&gt;annotation.Annotation&lt;SPAN&gt;.)&amp;nbsp;&lt;BR /&gt;So, you cannot extend an Annotation.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Based on above assertions, to answer your question, unfortunately there in no way of referring multiple OCD's configuration. &lt;STRONG&gt;However, you can achieve that by defining those &lt;EM&gt;MetaType (@AttributeDefinition)&lt;/EM&gt; in your original existing&amp;nbsp;&lt;EM&gt;@interface&lt;/EM&gt; which you are using in your component&amp;nbsp;class.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;It might be much better to move the common configuration into some kind of configuration service, and centralize all common functionality there&amp;nbsp;and use in other services using &lt;EM&gt;@Reference&lt;/EM&gt; annotation.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[0]: &lt;A href="http://docs.osgi.org/javadoc/r6/cmpn/org/osgi/service/metatype/annotations/Designate.html" target="_blank" rel="noopener"&gt;http://docs.osgi.org/javadoc/r6/cmpn/org/osgi/service/metatype/annotations/Designate.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[1]:&amp;nbsp;&lt;A href="https://docs.oracle.com/javase/specs/jls/se7/html/jls-9.html#jls-9.6" target="_blank" rel="noopener"&gt;https://docs.oracle.com/javase/specs/jls/se7/html/jls-9.html#jls-9.6&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 03:05:49 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/multiple-configuration-in-component-class/m-p/460639#M132847</guid>
      <dc:creator>SantoshSai</dc:creator>
      <dc:date>2022-07-13T03:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple configuration in Component class</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/multiple-configuration-in-component-class/m-p/460841#M132921</link>
      <description>&lt;P&gt;Thanks &lt;LI-USER uid="11813833"&gt;&lt;/LI-USER&gt;&amp;nbsp;. That was helpful!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 20:39:24 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/multiple-configuration-in-component-class/m-p/460841#M132921</guid>
      <dc:creator>prachiz</dc:creator>
      <dc:date>2022-07-13T20:39:24Z</dc:date>
    </item>
  </channel>
</rss>

