JSR-299ã§æå®ããã¦ããã³ã³ããã¹ãã¨ä¾åæ§ã®æ³¨å ¥(CDI: Contexts and Dependency Injection)ã¯Java EE 6ã®ä¸å¯æ¬ ãªé¨åã§ããããµã¼ãã¬ãããã¨ã³ã¿ã¼ãã©ã¤ãºBeanãJavaBeansãªã©ã®Java EEã³ã³ãã¼ãã³ãããã¢ããªã±ã¼ã·ã§ã³ã®ã©ã¤ããµã¤ã¯ã«å ã§æ確ãªã¹ã³ã¼ããæã£ã¦åå¨ã§ããããã«ããããã®ã¢ã¼ããã¯ãã£ãæä¾ãã¾ããã¾ããCDIãµã¼ãã¹ã«ãã£ã¦ãEJBã»ãã·ã§ã³BeanãJSF (JavaServer Faces)管ç対象Beanãªã©ã®Java EEã³ã³ãã¼ãã³ããæ³¨å ¥å¯è½ã«ãªããã¤ãã³ãã®èµ·åãç£è¦ã«ããççµåæ¹å¼ã®å¯¾è©±ãå¯è½ã«ãªãã¾ãã ãã®ãã¥ã¼ããªã¢ã«ã¯ãAndy Gibsonæ°ã«ãã£ã¦æ稿ãããGetting Started with JSF 2.0 and CDI in JEE 6ã¨ããã¿ã¤ãã«ã®ããã°ããã¼ã¹
å é±ã®åå¼·ä¼ã§ç´¹ä»ããã¦ããã ããjsf-scrumtoys-refactoredã§ã¯ãJSFã®ç®¡çBeanã使ç¨ãã代ããã«CDIã®Beanãå©ç¨ãã¦ãã¾ãããã®ç¹èª¬æãä¸ååã ã£ãã®ã§ãããã§ç°¡åã«è£è¶³ããã¦ããã ãã¾ãã JSFã¨ç®¡çBean åå¼·ä¼ã®ä¸ã§ãJSFã¯ã³ã³ãã¼ãã³ããã¼ã¹ã®Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã§ããã¨èª¬æããã¦ããã ãã¾ãããï¼ãã®ç¹ã«ã¤ãã¦ã¯ä»¥ä¸ã®ã¨ã³ããªã¼ããåç §ãã ãããStruts1ã«ä»£ããWebãã¬ã¼ã ã¯ã¼ã¯ã®é¸æ - é人ããã°ã©ãã¼ãç®æãã¦ï¼ ã³ã³ãã¼ãã³ããã¼ã¹ã®ãã¬ã¼ã ã¯ã¼ã¯ã®å ´åãVBãSwingã¨ãã£ãä¼çµ±çãªï¼Webã§ãªãï¼GUIã¢ããªã±ã¼ã·ã§ã³ã®ããã«ããã©ã¼ã ãå ¥åãã£ã¼ã«ãããã¿ã³ã¨ãã£ãç»é¢ã³ã³ãã¼ãã³ãã®ããªã¼ãæ§ç¯ããã¾ããããã¦ãç»é¢é¨åã®å ¥åãã¯ãªãã¯ãªã©ã®ã¤ãã³ãã«å¾ã£ã¦ã管çBeanã¨å¼ã°ããPOJOã«å¯¾ãã¦
Java EE6ã§ããã«éçºã¯å®¹æã«ãªã£ãï¼ ä»¥åJavaEEæ¨æºã®é²åããæè¿ã®æ¥åã¢ããªã±ã¼ã·ã§ã³éçºææ³ã®å¤é·ã«ã¤ãã¦èãã - é人ããã°ã©ãã¼ãç®æãã¦ã«ã¦Java EEæ¨æºã®éçºã¢ãã«ã®é²åã«ã¤ãã¦èª¬æãã¾ããã10å¹´åã®ç¸å½é¢åã ã£ãJ2EEã®éçºã¢ãã«ã¨æ¯ã¹ã¦ãææ°ã®Java EE6ã§ã¯ãæ§ã ãªOSSã®è¯ãç¹å¾´ãåãå ¥ãã¦ãç°¡åã«ããã°ã©ãã³ã°ã§ããããã«å¤§å¹ ã«æ¹è¯ããã¦ãã¾ããã¾ããGlassfish 3.1ãJBoss AS7ãªã©ã¯èµ·åæéãé常ã«ç縮ããã¦ãã*1ããã»ã©é ãPCã§ãªããã°ãããæ°ç§ã§åèµ·åãããã¨ãã§ãã¾ããããã«ãJava EEãµã¼ãã¼ãéãã¦ãã¹ãä¸è½ã¨ããã¤ã¡ã¼ã¸ã¯ããéå»ã®è©±ãããããªã - é人ããã°ã©ãã¼ãç®æãã¦ã§ç´¹ä»ããããã«ãJava EE6ã§ã¯å¾æ¥å°é£ã§ãã£ãåä½è©¦é¨ã®èªååã容æã«ãªã£ã¦ãã¾ãã åã ã®æè¡ã¯åªãã¦ããã®ã ããã©
åæ(æ稿æ¥ï¼2009/11/18)ã¸ã®ãªã³ã¯ Red Hat ã® JBoss é¨éã¯ãJSR-299: Contexts and Dependency Injection for Java EE(以éã§ã¯ CDI ã¨ãã) ã®ããã® Java EE 6 åç §å®è£ ã§ãããWeld 1.0.0 ãåºè·ãããWeld ã¯ãSun ã® GlassFish Application Server ãã¼ã¸ã§ã³ 3 ããã³ãæ¥ãã JBoss AS 5.2.0 ã§ä½¿ããã¦ããå®è£ ã§ãããããããªãããå®å ¨ãªã¢ããªã±ã¼ã·ã§ã³ãµã¼ããå¿ è¦ã¨ããªããWeld ã¯ãJetty 6.1 ã Tomcat 6 ã®ãããªãµã¼ãã¬ããã³ã³ããã«ããã¦åä½ããããã¨ãã§ããããJava SE 5.0 以ä¸ã¨ã§ãããåä½ãããå¾è ã示ãããã«ãWeld é å¸ã«ã¯ãã³ã³ã½ã¼ã«ã¢ããªã±ã¼ã·ã§ã³ã®ä¾ã¨ Swing ã¢ããªã±ã¼ã·ã§
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}