MEF
CodePlexã«ããMEF v2ã§ã¯ã«ã¹ã¿ã å±æ§ã§ã¯ãªãã³ã¼ãã§Import/Exportãå¯è½ã«ãªã£ã¦ãã¾ããããããããä¾åé¢ä¿ã®è§£æ±ºãã³ã¼ãã§ãããã«è¨å®ãã¡ã¤ã«ã«åºãã¦ãè¨å®ãã¡ã¤ã«ãè¤éã«ãªãã®ã§ã«ã¹ã¿ã å±æ§ã§æå®ã§ããããã«ãªã£ãã®ã«ãã¾ããã³ã¼ãã«æ»â¦
MEFè¨äºã®é£ç¶æä¸ç¬¬ä¸å¼¾ããã¾ãä¸è¬åãããªããã¿ãé£æã§ãã(^^;IronRubyãã¢ããªã±ã¼ã·ã§ã³ã«ãã¹ãã£ã³ã°ã¯é£ããããã¾ããããdynamicã使ããªã©ç¹å¥æ±ããå¿ è¦ã ã£ããããããä½ãããVSä¸ã§ã³ã¼ããæ¸ãã¦ãã«ãã¨ããæµãã®ä¸ã«ãrubyã§ã³ã¼ãâ¦
MEFã人ã«èª¬æããã¨ããã©ãè¨ãã°ããã®ã§ããããï¼ ç§ã®å ´åãDIã³ã³ãããç¥ã£ã¦ãã人ã«ã¯ãDIã³ã³ããã£ã½ãä½ããã¨è¶ãæ¿ãã¦ãã¾ãããã¦ãDIã³ã³ããã¯xmlã§è¨å®ãã¡ã¤ã«ãæ¸ããã®ãå¤ãã£ãå°è±¡ãããã¾ãããMEFã¯ã«ã¹ã¿ã å±æ§ãã¼ã¹ã«ãªã£ã¦â¦
å人çã«.NET4ã§ä¸çªæå¾ ãã¦ããMEFã§ãããä½ã足ããªããªãã£ã¨æã£ã¦ãããAOPããµãã¼ãããã¦ããªãã£ããã§ãããtwitterã§ã¤ã¶ããã¦ããæ¡ã§ã¡ãã£ã¨çµãã§ã¿ã¾ãããExportProviderã§ãã«ããã«ãããã ãã¾ã åå¼·ã®ããã®ã³ã¼ããªã®ã§ãã®ã¾ã¾ä»â¦
MEFã®ããã¥ã¡ã³ããèªãã§ããããã¡ã½ãããã¤ã³ã¸ã§ã¯ã·ã§ã³å¯è½(Seasar.NETã®ã¡ã½ããã¤ã³ã¸ã§ã¯ã·ã§ã³ã§ã¯ãªã)ã¨ãã£ãã®ã§æ©éå®é¨åã using System; using System.Reflection; using System.Linq; using System.Linq.Expressions; using System.Comâ¦
CodePlex Archive The Managed Extensibility Framework (MEF) is a new library in .NET that enables greater reuse of applications and components. ã¨ããã¾ãããã¨ããããDIã³ã³ããã¨èãã¦ããã°OKãæ¢ã«è¨äºã¨ãã¦åãä¸ããã¤ããã§ããããéå»â¦