{"id":936,"date":"2011-04-15T12:06:24","date_gmt":"2011-04-15T10:06:24","guid":{"rendered":"http:\/\/www.tutego.de\/blog\/javainsel\/2011\/04\/guice-3-mit-postconstruct-mycila\/"},"modified":"2011-04-15T12:06:24","modified_gmt":"2011-04-15T10:06:24","slug":"guice-3-mit-postconstruct-mycila","status":"publish","type":"post","link":"https:\/\/www.tutego.de\/blog\/javainsel\/2011\/04\/guice-3-mit-postconstruct-mycila\/","title":{"rendered":"Guice 3 mit @PostConstruct = Mycila"},"content":{"rendered":"<p>Von Spring habe ich mich schon l\u00e4nger verabschiedet und bin f\u00fcr meine clientseitigen Programme auf Guice gewechselt. Bis auf die Tatsache das es keinen automatischen Autoscan gibt, hat mir nichts wirklich gefehlt. Guice unterst\u00fctzt auch standardm\u00e4\u00dfig nicht die Common Annotions, aber bei Guice 2 hatte ich <a href=\"http:\/\/code.google.com\/p\/guiceyfruit\/\">http:\/\/code.google.com\/p\/guiceyfruit\/<\/a> im Einsatz, da das jedoch auf intern Datenstrukturen von Guice 2 zur\u00fcckgriff, konnte ich nicht auf die neue Version Guice 3 migrieren. Also schmiss ich GuiceFruit raus und suchte eine Alternative. Die gibt es mit dem Projekt <a href=\"http:\/\/code.google.com\/p\/mycila\/\">http:\/\/code.google.com\/p\/mycila\/<\/a>:<\/p>\n<blockquote>\n<p><a href=\"http:\/\/code.mycila.com\/wiki\/MycilaGuice\">http:\/\/code.mycila.com\/wiki\/MycilaGuice<\/a><\/p>\n<p><a href=\"http:\/\/code.google.com\/p\/google-guice\/\">Google Guice<\/a> contributions:<\/p>\n<ul>\n<li><strong>ServiceLoader<\/strong> plugin (enables injection into loaded services) <\/li>\n<li><strong>JSR250<\/strong> supports improved from <a href=\"http:\/\/code.google.com\/p\/guiceyfruit\/\">GuicyFruit<\/a><\/li>\n<li><strong>Custom Injector<\/strong> with more useful methods which consider the whole Injector hierarchy <\/li>\n<li><strong>CachedScope<\/strong> to cache your binding for a specific duration<\/li>\n<\/ul>\n<\/blockquote>\n<p>Neben Mycila Guice gibt es auch noch andere tolle Dinge:<\/p>\n<ul>\n<li>Mycila Event<\/li>\n<li>Mycila JMX<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Von Spring habe ich mich schon l\u00e4nger verabschiedet und bin f\u00fcr meine clientseitigen Programme auf Guice gewechselt. Bis auf die Tatsache das es keinen automatischen Autoscan gibt, hat mir nichts wirklich gefehlt. Guice unterst\u00fctzt auch standardm\u00e4\u00dfig nicht die Common Annotions, aber bei Guice 2 hatte ich http:\/\/code.google.com\/p\/guiceyfruit\/ im Einsatz, da das jedoch auf intern Datenstrukturen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[4],"tags":[47,53],"class_list":["post-936","post","type-post","status-publish","format-standard","hentry","category-open-source","tag-google","tag-guice"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/comments?post=936"}],"version-history":[{"count":0,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/posts\/936\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/media?parent=936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/categories?post=936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tutego.de\/blog\/javainsel\/wp-json\/wp\/v2\/tags?post=936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}