ºìÁªLinuxÃÅ»§
Linux°ïÖú

Google Guice 4.2·¢²¼£¬Ö§³ÖJava 9ºÍJPMS

·¢²¼Ê±¼ä:2018-03-02 09:15:05À´Ô´:ºìÁª×÷Õß:baihuo
Guice 4.2 ÒÑ·¢²¼ÁË£¬Guice ÊÇ Google ¿ª·¢µÄÒ»¸ö»ùÓÚ Java 6 ÒÔÉϵÄÇáÁ¿¼¶ÒÀÀµ×¢Èë¿ò¼Ü£¬Ä¿±êÊÇʹ¿ª·¢ºÍµ÷ÊÔ¸üÈÝÒ×£¬¸ü¿ìËÙ¡£

Ö÷Òª¸üÐÂÄÚÈÝ£º

Ö§³Ö Java 9 ºÍ JPMS

Multibindings£¨¶àÖذ󶨣©ÏÖÔÚλÓÚ Guice µÄºËÐŤ¼þÖС£Multibindings ¹¤¼þÊǿյģ¬ÒÔ·ÀÖ¹ÔÚÉý¼¶¹ý³ÌÖÐÔì³É»ìÏý£¬²¢½«ÔÚºóÐø°æ±¾ÖÐɾ³ý¡£

ͨ¹ý¸Ä±ä±¨¸æ´íÎóµÄ·½Ê½Ìá¸ß guice provisioning Ô¼ 20£¥ µÄÐÔÄÜ¡£Guice ÔÚ provisioning Æڼ佫²»ÔÙ±¨¸æ¶à¸ö´íÎó¡£

¸Ä½ø°ó¶¨È±Ê§µÄ´íÎóÌáÐÑ¡£

¸÷ÖÖÓÅ»¯¡£

ÐÂÔö CheckedProviders Àà¡£

µ÷Õû Singletons£¨µ¥Àýģʽ£©µÄ¹¤×÷·½Ê½£¬²»ÔÙÒÀÀµ ThreadLocals ºÍ WeakReferences ¡£

ÐÂÔö MapBinderBinding.getEntries(Iterable)¡£

ÆúÓÃ ProvisionListener.ProvisionInvocation.getDependencyChain()¡£

Maven

Guice:[code]
com.google.inject
guice
4.2.0
[/code]Guice (No AOP):[code]
com.google.inject
guice
4.2.0
no_aop
[/code]Èí¼þÏêÇ飺https://github.com/google/guice/wiki/Guice42

ÏÂÔصØÖ·£ºhttp://search.maven.org/remotecontent?filepath=com/google/inject/guice/4.2.0/guice-4.2.0.jar

À´×Ô:¿ªÔ´ÖйúÉçÇø
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ