{"id":24529,"date":"2014-04-25T01:00:04","date_gmt":"2014-04-24T22:00:04","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=24529"},"modified":"2014-04-24T16:10:16","modified_gmt":"2014-04-24T13:10:16","slug":"java-ee-cdi-qualifiers-quick-peek","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html","title":{"rendered":"Java EE CDI Qualifiers: Quick Peek"},"content":{"rendered":"<p><strong><em>Qualifiers<\/em><\/strong> are the mainstay of <strong><em>type safety<\/em><\/strong> and <em><strong>loose coupling<\/strong><\/em> in Contexts and Dependency Injection (CDI). <strong><em>Why?<\/em><\/strong> Without CDI, we would be injecting Java EE components in a manner similar to below<\/p>\n<p><strong><em>Note:<\/em><\/strong>This will actually not compile and is just a hypothetical code snippet<\/p>\n<p>&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n<h4>Example 1<\/h4>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/04\/cdi1.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-24598\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/04\/cdi1.jpg\" alt=\"cdi1\" width=\"439\" height=\"285\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/04\/cdi1.jpg 439w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/04\/cdi1-300x194.jpg 300w\" sizes=\"(max-width: 439px) 100vw, 439px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h4>Example 2<\/h4>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/04\/cdi2.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-24599\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/04\/cdi2.jpg\" alt=\"cdi2\" width=\"571\" height=\"269\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/04\/cdi2.jpg 605w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/04\/cdi2-300x141.jpg 300w\" sizes=\"(max-width: 571px) 100vw, 571px\" \/><\/a><\/p>\n<h2>What\u2019s wrong with the above implementations?<\/h2>\n<ul>\n<li><strong><em>Not type safe<\/em><\/strong> \u2013 Uses a String to specify the fully qualified name of an implementation class (see <em><strong>Example 1<\/strong><\/em>)<\/li>\n<li><strong><em>Tightly couples<\/em><\/strong> the BasicCustomerPortal class to the BasicService class (see <em><strong>Example 2<\/strong><\/em>)<\/li>\n<\/ul>\n<p>This is exactly why CDI does not do Injection this way !<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<h3>Qualifiers help promote<\/h3>\n<ul>\n<li><strong><em>Loose Coupling<\/em><\/strong> \u2013 An explicit class is not introduced within another. Detaches implementations from each other<\/li>\n<li><strong><em>Strong Typing (type safety)<\/em><\/strong> \u2013 No String literals to define injection properties\/metadata<\/li>\n<\/ul>\n<h3>\u00a0Qualifiers also serve as<\/h3>\n<ul>\n<li><strong><em>Binding components<\/em><\/strong> between beans and <em><strong>Decorators<\/strong><\/em><\/li>\n<li><strong><em>Event selectors<\/em><\/strong> for Observers (event consumers)<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2><strong>How to use Qualifiers?\u00a0<\/strong><\/h2>\n<h4>CDI Qualifiers Simplified<\/h4>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/04\/cdi-qualifiers-simplified.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-24600\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/04\/cdi-qualifiers-simplified.jpg\" alt=\"cdi-qualifiers-simplified\" width=\"571\" height=\"428\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/04\/cdi-qualifiers-simplified.jpg 960w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2014\/04\/cdi-qualifiers-simplified-300x225.jpg 300w\" sizes=\"(max-width: 571px) 100vw, 571px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u00a0Simplified steps<\/h2>\n<ul>\n<li>Create a Qualifier<\/li>\n<li>Apply Qualifiers to different implementation classes<\/li>\n<li>Use the Qualifiers along with @Inject to inject the instance of the appropriate implementation within a class<\/li>\n<\/ul>\n<p>This was not a detailed or in-depth post about CDI Qualifiers. It\u2019s more of a quick reference.<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/abhirockzz\/cdi-qualifiers\" target=\"_blank\"><em><strong>Click for source code<\/strong><\/em><\/a><\/li>\n<\/ul>\n<h2><strong>More on CDI<\/strong><\/h2>\n<ul>\n<li><a href=\"https:\/\/jcp.org\/aboutJava\/communityprocess\/mrel\/jsr346\/index.html\" target=\"_blank\">The Specification page (CDI 1.2)<\/a><\/li>\n<li><a href=\"http:\/\/cdi-spec.org\/\" target=\"_blank\">Official CDI page<\/a><\/li>\n<\/ul>\n<p>Thanks for reading!<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/abhirockzz.wordpress.com\/2014\/04\/22\/java-ee-cdi-qualifiers-quick-peek\/\">Java EE CDI Qualifiers: Quick Peek<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/jcg\">JCG partner<\/a> Abhishek Gupta at the <a href=\"http:\/\/abhirockzz.wordpress.com\/\">Object Oriented.. <\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Qualifiers are the mainstay of type safety and loose coupling in Contexts and Dependency Injection (CDI). Why? Without CDI, we would be injecting Java EE components in a manner similar to below Note:This will actually not compile and is just a hypothetical code snippet &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Example 1 &nbsp; Example 2 What\u2019s &hellip;<\/p>\n","protected":false},"author":545,"featured_media":112,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[290],"class_list":["post-24529","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-cdi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Java EE CDI Qualifiers: Quick Peek<\/title>\n<meta name=\"description\" content=\"Qualifiers are the mainstay of type safety and loose coupling in Contexts and Dependency Injection (CDI). Why? Without CDI, we would be injecting Java EE\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java EE CDI Qualifiers: Quick Peek\" \/>\n<meta property=\"og:description\" content=\"Qualifiers are the mainstay of type safety and loose coupling in Contexts and Dependency Injection (CDI). Why? Without CDI, we would be injecting Java EE\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:author\" content=\"http:\/\/www.facebook.com\/100000586869380\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-24T22:00:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Abhishek Gupta\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/abhi_tweeter\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abhishek Gupta\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/04\\\/java-ee-cdi-qualifiers-quick-peek.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/04\\\/java-ee-cdi-qualifiers-quick-peek.html\"},\"author\":{\"name\":\"Abhishek Gupta\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/ef37bd58f3ae6f6504852858ad1d7cd7\"},\"headline\":\"Java EE CDI Qualifiers: Quick Peek\",\"datePublished\":\"2014-04-24T22:00:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/04\\\/java-ee-cdi-qualifiers-quick-peek.html\"},\"wordCount\":242,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/04\\\/java-ee-cdi-qualifiers-quick-peek.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"keywords\":[\"CDI\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/04\\\/java-ee-cdi-qualifiers-quick-peek.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/04\\\/java-ee-cdi-qualifiers-quick-peek.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/04\\\/java-ee-cdi-qualifiers-quick-peek.html\",\"name\":\"Java EE CDI Qualifiers: Quick Peek\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/04\\\/java-ee-cdi-qualifiers-quick-peek.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/04\\\/java-ee-cdi-qualifiers-quick-peek.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"datePublished\":\"2014-04-24T22:00:04+00:00\",\"description\":\"Qualifiers are the mainstay of type safety and loose coupling in Contexts and Dependency Injection (CDI). Why? Without CDI, we would be injecting Java EE\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/04\\\/java-ee-cdi-qualifiers-quick-peek.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/04\\\/java-ee-cdi-qualifiers-quick-peek.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/04\\\/java-ee-cdi-qualifiers-quick-peek.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"java-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2014\\\/04\\\/java-ee-cdi-qualifiers-quick-peek.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Java EE CDI Qualifiers: Quick Peek\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/ef37bd58f3ae6f6504852858ad1d7cd7\",\"name\":\"Abhishek Gupta\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3f3fc8e83d92bec29f7cb54bba3d5043d138c479a66a4711483bc6b4d95ae37c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3f3fc8e83d92bec29f7cb54bba3d5043d138c479a66a4711483bc6b4d95ae37c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3f3fc8e83d92bec29f7cb54bba3d5043d138c479a66a4711483bc6b4d95ae37c?s=96&d=mm&r=g\",\"caption\":\"Abhishek Gupta\"},\"sameAs\":[\"http:\\\/\\\/abhirockzz.wordpress.com\\\/\",\"http:\\\/\\\/www.facebook.com\\\/100000586869380\",\"http:\\\/\\\/in.linkedin.com\\\/pub\\\/abhishek-gupta\\\/27\\\/331\\\/866\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/abhi_tweeter\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/abhishek-gupta\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java EE CDI Qualifiers: Quick Peek","description":"Qualifiers are the mainstay of type safety and loose coupling in Contexts and Dependency Injection (CDI). Why? Without CDI, we would be injecting Java EE","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html","og_locale":"en_US","og_type":"article","og_title":"Java EE CDI Qualifiers: Quick Peek","og_description":"Qualifiers are the mainstay of type safety and loose coupling in Contexts and Dependency Injection (CDI). Why? Without CDI, we would be injecting Java EE","og_url":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_author":"http:\/\/www.facebook.com\/100000586869380","article_published_time":"2014-04-24T22:00:04+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","type":"image\/jpeg"}],"author":"Abhishek Gupta","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/abhi_tweeter","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Abhishek Gupta","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html"},"author":{"name":"Abhishek Gupta","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/ef37bd58f3ae6f6504852858ad1d7cd7"},"headline":"Java EE CDI Qualifiers: Quick Peek","datePublished":"2014-04-24T22:00:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html"},"wordCount":242,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","keywords":["CDI"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html","url":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html","name":"Java EE CDI Qualifiers: Quick Peek","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","datePublished":"2014-04-24T22:00:04+00:00","description":"Qualifiers are the mainstay of type safety and loose coupling in Contexts and Dependency Injection (CDI). Why? Without CDI, we would be injecting Java EE","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","width":150,"height":150,"caption":"java-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2014\/04\/java-ee-cdi-qualifiers-quick-peek.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Java EE CDI Qualifiers: Quick Peek"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/ef37bd58f3ae6f6504852858ad1d7cd7","name":"Abhishek Gupta","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3f3fc8e83d92bec29f7cb54bba3d5043d138c479a66a4711483bc6b4d95ae37c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3f3fc8e83d92bec29f7cb54bba3d5043d138c479a66a4711483bc6b4d95ae37c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3f3fc8e83d92bec29f7cb54bba3d5043d138c479a66a4711483bc6b4d95ae37c?s=96&d=mm&r=g","caption":"Abhishek Gupta"},"sameAs":["http:\/\/abhirockzz.wordpress.com\/","http:\/\/www.facebook.com\/100000586869380","http:\/\/in.linkedin.com\/pub\/abhishek-gupta\/27\/331\/866","https:\/\/x.com\/https:\/\/twitter.com\/abhi_tweeter"],"url":"https:\/\/www.javacodegeeks.com\/author\/abhishek-gupta"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/24529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/545"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=24529"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/24529\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/112"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=24529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=24529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=24529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}