{"id":382,"date":"2007-10-21T00:00:00","date_gmt":"2007-10-21T00:00:00","guid":{"rendered":"http:\/\/www.strongd.net\/?p=382"},"modified":"2007-10-21T00:00:00","modified_gmt":"2007-10-21T00:00:00","slug":"Creating and Using Extensions","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=382","title":{"rendered":"Creating and Using Extensions"},"content":{"rendered":"<p><DIV id=PageTitle>Creating and Using Extensions<\/DIV><br \/>\n<BLOCKQUOTE>Any set of packages or classes can easily be made to play the role of an extension. The first step in turning a set of classes into an extension is to bundle them in a JAR file. Once that&#8217;s done, you can turn the software into an extension in two ways:<br \/>\n<UL><br \/>\n<LI>by placing the JAR file in a special location in the directory structure of the Java Runtime Environment, in which case it&#8217;s called an <EM>installed<\/EM> extension. <\/LI><br \/>\n<LI>by referencing the JAR file in a specified way from the manifest of the another JAR file, in which case it&#8217;s called a <EM>download<\/EM> extension. <\/LI><\/UL><br \/>\n<P>This lesson shows you how the extension mechanism works by using a simple &#8220;toy&#8221; extension as an example. <\/P><\/BLOCKQUOTE><br \/>\n<H3><A class=TutorialLink href=\"http:\/\/www.strongd.net\/blog\/show\/379\" target=_top>Installed Extensions<\/A><\/H3><br \/>\n<BLOCKQUOTE>In this section, you&#8217;ll create a simple installed extension and see how extension software is treated as part of the platform by the runtime environment. <\/BLOCKQUOTE><br \/>\n<H3><A class=TutorialLink href=\"http:\/\/www.strongd.net\/blog\/show\/380\" target=_top>Download Extensions<\/A><\/H3><br \/>\n<BLOCKQUOTE>This section will show you how modify a JAR file&#8217;s manifest so that the JAR-bundled software can make use of download extensions. <\/BLOCKQUOTE><br \/>\n<H3><A class=TutorialLink href=\"http:\/\/www.strongd.net\/blog\/show\/381\" target=_top>Understanding Extension Class Loading<\/A><\/H3><br \/>\n<BLOCKQUOTE>This section is a short detour that summarizes the Java platform&#8217;s delegation model for loading classes, and shows how it relates to loading classes in extensions. <\/BLOCKQUOTE><br \/>\n<DIV><\/DIV><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating and Using Extensions Any set of packages or classes can easily be made to play the role of an extension. The first step in turning a set of classes into an extension is to bundle them in a JAR file. Once that&#8217;s done, you can turn the software into an extension in two ways: &hellip; <a href=\"https:\/\/www.strongd.net\/?p=382\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Creating and Using Extensions<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-382","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=382"}],"version-history":[{"count":0,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/382\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}