{"id":14421,"date":"2014-06-30T10:46:58","date_gmt":"2014-06-30T05:16:58","guid":{"rendered":"https:\/\/2thenew.xyz\/blog\/?p=14421"},"modified":"2015-07-09T15:28:40","modified_gmt":"2015-07-09T09:58:40","slug":"register-groovy-class-as-componentservice-in-cq","status":"publish","type":"post","link":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/","title":{"rendered":"Register Groovy class as Component\/Service in CQ"},"content":{"rendered":"<p><a title=\"cq5 Developer\" href=\"https:\/\/2thenew.xyz\/wcm\/cq-aem-development-consulting\">Being a CQ5 developer<\/a>, I have to register components and services almost everyday. Knowing how powerful Groovy is, I wanted to replace all Java code with Groovy. First step towards it was being able to compile Groovy. I got it to work with the help of this <a title=\"Groovy with CQ5\" href=\"https:\/\/2thenew.xyz\/blog\/groovy-integration-with-cq5-in-maven\/\" target=\"_blank\">blog<\/a>.<\/p>\n<p>Although I was facing following problem even after this:<\/p>\n<p>&#8211; I was not able to register component as a service or component. Infact none of the SCR annotations seemed to work with Groovy. I had following maven-scr plugin configration.<\/p>\n<p>[html]<\/p>\n<p>    &lt;plugin&gt;<br \/>\n      &lt;groupId&gt;org.apache.felix&lt;\/groupId&gt;<br \/>\n      &lt;artifactId&gt;maven-scr-plugin&lt;\/artifactId&gt;<br \/>\n      &lt;executions&gt;<br \/>\n        &lt;execution&gt;<br \/>\n        &lt;id&gt;generate-scr-descriptor&lt;\/id&gt;<br \/>\n        &lt;goals&gt;<br \/>\n          &lt;goal&gt;scr&lt;\/goal&gt;<br \/>\n        &lt;\/goals&gt;<br \/>\n        &lt;\/execution&gt;<br \/>\n      &lt;\/executions&gt;<br \/>\n    &lt;\/plugin&gt;<\/p>\n<p>[\/html]<\/p>\n<p>Tried a lot of things for this and this is how I got it work(thanks to suggestions from a group):<\/p>\n<p>[html]<\/p>\n<p>   &lt;plugin&gt;<br \/>\n      &lt;groupId&gt;org.apache.felix&lt;\/groupId&gt;<br \/>\n      &lt;artifactId&gt;maven-scr-plugin&lt;\/artifactId&gt;<br \/>\n      &lt;configuration&gt;<br \/>\n        &lt;scanClasses&gt;true&lt;\/scanClasses&gt;<br \/>\n      &lt;\/configuration&gt;<br \/>\n      &lt;executions&gt;<br \/>\n        &lt;execution&gt;<br \/>\n          &lt;id&gt;generate-scr-descriptor&lt;\/id&gt;<br \/>\n          &lt;goals&gt;<br \/>\n            &lt;goal&gt;scr&lt;\/goal&gt;<br \/>\n          &lt;\/goals&gt;<br \/>\n        &lt;\/execution&gt;<br \/>\n      &lt;\/executions&gt;<br \/>\n   &lt;\/plugin&gt;<\/p>\n<p>[\/html]<\/p>\n<p>By default maven-scr plugin compiles only Java Classes. To make it aware of Groovy classes also, a configuration &#8220;scanClasses&#8221; has to be set to true.<\/p>\n<p>Updated:<\/p>\n<p>There are 2 more configuration changes that are needed:<\/p>\n<p>1) I had to change version of maven-scr-plugin from 1.7.4 to 1.17.0<\/p>\n<p>[java]<\/p>\n<p>&lt;plugin&gt;<br \/>\n&lt;groupId&gt;org.apache.felix&lt;\/groupId&gt;<br \/>\n&lt;artifactId&gt;maven-scr-plugin&lt;\/artifactId&gt;<br \/>\n&lt;version&gt;1.17.0&lt;\/version&gt;<br \/>\n&lt;\/plugin&gt;<\/p>\n<p>[\/java]<\/p>\n<p>2) Change version of felix scr annotation to 1.9.8<\/p>\n<p>[java]<\/p>\n<p>&lt;dependency&gt;<br \/>\n&lt;groupId&gt;org.apache.felix&lt;\/groupId&gt;<br \/>\n&lt;artifactId&gt;org.apache.felix.scr.annotations&lt;\/artifactId&gt;<br \/>\n&lt;version&gt;1.9.8&lt;\/version&gt;<br \/>\n&lt;scope&gt;provided&lt;\/scope&gt;<br \/>\n&lt;\/dependency&gt;<\/p>\n<p>[\/java]<\/p>\n<p>Adding this code worked like a charm.<\/p>\n<p>Hope this helps CQ5 developers who love Groovy(like me. :))&#8230;<\/p>\n<p>Vivek Sachdeva<\/p>\n<p>CQ5 developer<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Being a CQ5 developer, I have to register components and services almost everyday. Knowing how powerful Groovy is, I wanted to replace all Java code with Groovy. First step towards it was being able to compile Groovy. I got it to work with the help of this blog. Although I was facing following problem even [&hellip;]<\/p>\n","protected":false},"author":48,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":1,"footnotes":""},"categories":[1],"tags":[4847,1207,9,1340],"class_list":["post-14421","post","type-post","status-publish","format-standard","hentry","category-technology","tag-aem","tag-cq5","tag-groovy","tag-maven"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Being a CQ5 developer, I have to register components and services almost everyday. Knowing how powerful Groovy is, I wanted to replace all Java code with Groovy. First step towards it was being able to compile Groovy. I got it to work with the help of this blog. Although I was facing following problem even\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Vivek Sachdeva\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Register Groovy class as Component\/Service in CQ | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Being a CQ5 developer, I have to register components and services almost everyday. Knowing how powerful Groovy is, I wanted to replace all Java code with Groovy. First step towards it was being able to compile Groovy. I got it to work with the help of this blog. Although I was facing following problem even\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"article:tag\" content=\"technology\" \/>\n\t\t<meta property=\"article:tag\" content=\"aem\" \/>\n\t\t<meta property=\"article:tag\" content=\"cq5\" \/>\n\t\t<meta property=\"article:tag\" content=\"groovy\" \/>\n\t\t<meta property=\"article:tag\" content=\"maven\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2014-06-30T05:16:58+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2015-07-09T09:58:40+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Register Groovy class as Component\/Service in CQ | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Being a CQ5 developer, I have to register components and services almost everyday. Knowing how powerful Groovy is, I wanted to replace all Java code with Groovy. First step towards it was being able to compile Groovy. I got it to work with the help of this blog. Although I was facing following problem even\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/register-groovy-class-as-componentservice-in-cq\\\/#article\",\"name\":\"Register Groovy class as Component\\\/Service in CQ | TO THE NEW Blog\",\"headline\":\"Register Groovy class as Component\\\/Service in CQ\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vivek-sachdeva\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2014-06-30T10:46:58+05:30\",\"dateModified\":\"2015-07-09T15:28:40+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/register-groovy-class-as-componentservice-in-cq\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/register-groovy-class-as-componentservice-in-cq\\\/#webpage\"},\"articleSection\":\"Technology, AEM, CQ5, Groovy, maven\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/register-groovy-class-as-componentservice-in-cq\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/register-groovy-class-as-componentservice-in-cq\\\/#listItem\",\"name\":\"Register Groovy class as Component\\\/Service in CQ\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/register-groovy-class-as-componentservice-in-cq\\\/#listItem\",\"position\":3,\"name\":\"Register Groovy class as Component\\\/Service in CQ\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vivek-sachdeva\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vivek-sachdeva\\\/\",\"name\":\"Vivek Sachdeva\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/register-groovy-class-as-componentservice-in-cq\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/e4057f7b-4721-48dd-a0f9-df1b70a274c4_vivek.sachdeva@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Vivek Sachdeva\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/register-groovy-class-as-componentservice-in-cq\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/register-groovy-class-as-componentservice-in-cq\\\/\",\"name\":\"Register Groovy class as Component\\\/Service in CQ | TO THE NEW Blog\",\"description\":\"Being a CQ5 developer, I have to register components and services almost everyday. Knowing how powerful Groovy is, I wanted to replace all Java code with Groovy. First step towards it was being able to compile Groovy. I got it to work with the help of this blog. Although I was facing following problem even\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/register-groovy-class-as-componentservice-in-cq\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vivek-sachdeva\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/vivek-sachdeva\\\/#author\"},\"datePublished\":\"2014-06-30T10:46:58+05:30\",\"dateModified\":\"2015-07-09T15:28:40+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Register Groovy class as Component\/Service in CQ | TO THE NEW Blog","description":"Being a CQ5 developer, I have to register components and services almost everyday. Knowing how powerful Groovy is, I wanted to replace all Java code with Groovy. First step towards it was being able to compile Groovy. I got it to work with the help of this blog. Although I was facing following problem even","canonical_url":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/#article","name":"Register Groovy class as Component\/Service in CQ | TO THE NEW Blog","headline":"Register Groovy class as Component\/Service in CQ","author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/vivek-sachdeva\/#author"},"publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"},"datePublished":"2014-06-30T10:46:58+05:30","dateModified":"2015-07-09T15:28:40+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/#webpage"},"articleSection":"Technology, AEM, CQ5, Groovy, maven"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.xyz\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/2thenew.xyz\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/#listItem","name":"Register Groovy class as Component\/Service in CQ"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/#listItem","position":3,"name":"Register Groovy class as Component\/Service in CQ","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.xyz\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.xyz\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.xyz\/blog\/author\/vivek-sachdeva\/#author","url":"https:\/\/2thenew.xyz\/blog\/author\/vivek-sachdeva\/","name":"Vivek Sachdeva","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/e4057f7b-4721-48dd-a0f9-df1b70a274c4_vivek.sachdeva@tothenew.com.jpg","width":96,"height":96,"caption":"Vivek Sachdeva"}},{"@type":"WebPage","@id":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/#webpage","url":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/","name":"Register Groovy class as Component\/Service in CQ | TO THE NEW Blog","description":"Being a CQ5 developer, I have to register components and services almost everyday. Knowing how powerful Groovy is, I wanted to replace all Java code with Groovy. First step towards it was being able to compile Groovy. I got it to work with the help of this blog. Although I was facing following problem even","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/vivek-sachdeva\/#author"},"creator":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/vivek-sachdeva\/#author"},"datePublished":"2014-06-30T10:46:58+05:30","dateModified":"2015-07-09T15:28:40+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.xyz\/blog\/#website","url":"https:\/\/2thenew.xyz\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"article","og:title":"Register Groovy class as Component\/Service in CQ | TO THE NEW Blog","og:description":"Being a CQ5 developer, I have to register components and services almost everyday. Knowing how powerful Groovy is, I wanted to replace all Java code with Groovy. First step towards it was being able to compile Groovy. I got it to work with the help of this blog. Although I was facing following problem even","og:url":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/","og:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","article:tag":["technology","aem","cq5","groovy","maven"],"article:published_time":"2014-06-30T05:16:58+00:00","article:modified_time":"2015-07-09T09:58:40+00:00","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Register Groovy class as Component\/Service in CQ | TO THE NEW Blog","twitter:description":"Being a CQ5 developer, I have to register components and services almost everyday. Knowing how powerful Groovy is, I wanted to replace all Java code with Groovy. First step towards it was being able to compile Groovy. I got it to work with the help of this blog. Although I was facing following problem even","twitter:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"14421","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"article","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-30 08:01:25","updated":"2024-02-29 10:45:24","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tRegister Groovy class as Component\/Service in CQ\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.xyz\/blog"},{"label":"Technology","link":"https:\/\/2thenew.xyz\/blog\/category\/technology\/"},{"label":"Register Groovy class as Component\/Service in CQ","link":"https:\/\/2thenew.xyz\/blog\/register-groovy-class-as-componentservice-in-cq\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/14421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/users\/48"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/comments?post=14421"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/14421\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/media?parent=14421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/categories?post=14421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/tags?post=14421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}